From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.web10.4757.1647673576434664907 for ; Sat, 19 Mar 2022 00:06:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TlpXTqKt; spf=pass (domain: gmail.com, ip: 209.85.214.180, mailfrom: ayushdevel1325@gmail.com) Received: by mail-pl1-f180.google.com with SMTP id n18so8771761plg.5 for ; Sat, 19 Mar 2022 00:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=SjGNZdDzWEXsPim0zZaRG+OnwNBxGHpP/212Lh/NkZw=; b=TlpXTqKtLa590Y8SffAOQ0wvGe9B0DLCa6Qhhv16rAMSB3kbYmWarG/5fmpCHWrWPR aYzRf1ngf0bK+ez33Ywptx2cpwWPEb9qg8ba2rRYiXr9IiUCyRYDXVPMWkUfED3hhwSy 8T5jfOpucRjnGA6770A0K7t7jzw5w5y+noG8OnusXu2+RvAN+eBaBIOJZvWPysvIuHN3 18E9S8jgWFWWPspLMDVUUu1bizU+kSa4S80caJs2NcruIavDeh4LARW3JLLHIQTlvkvj fgqg+Kf63q2RV8DMB+UEZpjc46r0/BRWxX9DENQpvfT+agdZ6iJeFU9V+WkQ18S8nZnf VhBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=SjGNZdDzWEXsPim0zZaRG+OnwNBxGHpP/212Lh/NkZw=; b=P6dg/uae5J7u8WfXKFC3RawpBDTkkPorWovyf1VZ1eSdAauGAAzV4yjsRh1vlboYcS LFGDMcyEHZtD/hb+k3f51OuXt/sQKdxPjH6SxzbNfDlMnBZ6fXSii2lXmvJFT06tJfrf Q4vH0BAOs5gL/1O7jT3Udb0b+jUWECl0eZ/RivS0aUBPVHIWj9AhYbSxJA3i0ryFNj54 8q7kGKulTrbkiFVCI9jGTuqROgtT7NQnaARooswFPvCoxMo6P0QarYy7MP8uKfrsOgD1 nlK+zRA8UIMYr5WCH5R1INxEXqWkrhe58lMSC8H4X99VZrfqfB2nhkhG6b/VAwUTs0jp HbVQ== X-Gm-Message-State: AOAM53033TtHWbefe1ELR3bEGgOXT8F3gEFnbSZ5ZIQXa1y5M/WQFyie 45DJWXDmrMTH8ixcxOLo05h8HqzL3o2GKA== X-Google-Smtp-Source: ABdhPJwTkUFvGE98q2Ut68jjrWOfdAKzUeVskBLK06r0MwG6vuCgI9bToiZQCvZLVQ1BMTD+VAxVGA== X-Received: by 2002:a17:902:ec89:b0:153:f480:5089 with SMTP id x9-20020a170902ec8900b00153f4805089mr3074944plg.166.1647673575635; Sat, 19 Mar 2022 00:06:15 -0700 (PDT) Return-Path: Received: from toolbox.iitism.net ([103.15.228.66]) by smtp.gmail.com with ESMTPSA id u4-20020a056a00158400b004fa0263cf5dsm12300538pfk.130.2022.03.19.00.06.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Mar 2022 00:06:15 -0700 (PDT) From: ayushdevel1325@gmail.com To: devel@edk2.groups.io Subject: [PATCH v1 0/3]: Fix RustPkg/Tests in edkii-rust branch edk2-staging Date: Sat, 19 Mar 2022 12:35:50 +0530 Message-Id: <20220319070553.25770-1-ayushdevel1325@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit CC Jiewen Yao This is my 2nd email about this patch to fix edkii-rust branch in edk2-staging repo, this time hopefully following contributing procedure better. I have tried to to fix RustPkg/Test/HelloWorld, RustPkg/Test/HelloWorld2, RustPkg/Test/TestRustLangApp, and RustPkg/Test/TestRustLangLib. This also meant fixing RustPkg/Library/UefiRustIntrinsicLib and RustPkg/Library/UefiRustAllocationLib. It is also not possible to build this branch with gcc-11 since that will require a rebase to edk2/master, but I am not sure how that can be done since edk2-staging/master does not track edk2/master like it is supposed to according to the edk2-staging/about branch. My working repository for these commits can be found at: https://github.com/Ayush1325/edk2-staging/tree/edkii-rust-fix-v1 Ayush Singh (3): RustPkg/Test: Replace cargo-xbuild with build-std RustPkg/Test/TestRustLangLib: Fix Building RustPkg/Test/TestRustLangApp: Fix building RustPkg/Library/UefiRustAllocationLib/src/lib.rs | 53 ++-- RustPkg/Library/UefiRustIntrinsicLib/src/lib.rs | 8 - RustPkg/Test/HelloWorld/.cargo/config.toml | 3 + RustPkg/Test/HelloWorld2/.cargo/config.toml | 3 + RustPkg/Test/TestRustLangApp/.cargo/config.toml | 3 + RustPkg/Test/TestRustLangApp/src/main.rs | 95 +++---- RustPkg/Test/TestRustLangLib/.cargo/config.toml | 3 + RustPkg/Test/TestRustLangLib/src/lib.rs | 264 ++++++++------------ 8 files changed, 186 insertions(+), 246 deletions(-) create mode 100644 RustPkg/Test/HelloWorld/.cargo/config.toml create mode 100644 RustPkg/Test/HelloWorld2/.cargo/config.toml create mode 100644 RustPkg/Test/TestRustLangApp/.cargo/config.toml create mode 100644 RustPkg/Test/TestRustLangLib/.cargo/config.toml -- 2.35.1