From 44658adb47169539beb573f5da7186f40466a447 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 7 May 2024 17:02:15 +0800 Subject: [PATCH] deal with deprecation notice in rust 1.38 annoying. is this actually necessary? --- .cargo/config | 21 +-------------------- .cargo/config.toml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 20 deletions(-) mode change 100644 => 120000 .cargo/config create mode 100644 .cargo/config.toml diff --git a/.cargo/config b/.cargo/config deleted file mode 100644 index 58625288e..000000000 --- a/.cargo/config +++ /dev/null @@ -1,20 +0,0 @@ -[alias] -xtask = "run --package xtask --" - -# [net] -# offline = true # do not access the network - -[build] -rustflags = ["--cfg", "crossbeam_no_atomic_64"] - -# [target.riscv32imac-unknown-xous-elf] -# linker = "/usr/bin/mold" -# rustflags = [ -# "-C", "linker-flavor=ld", -# "-C", "relocation-model=pic", -# "-C", "link-arg=-shared", -# "--cfg", "crossbeam_no_atomic_64" -# ] - -[target.riscv32imac-unknown-xous-elf] -rustflags = ["--cfg", 'curve25519_dalek_backend="u32e_backend"'] \ No newline at end of file diff --git a/.cargo/config b/.cargo/config new file mode 120000 index 000000000..ab8b69cbc --- /dev/null +++ b/.cargo/config @@ -0,0 +1 @@ +config.toml \ No newline at end of file diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 000000000..58625288e --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,20 @@ +[alias] +xtask = "run --package xtask --" + +# [net] +# offline = true # do not access the network + +[build] +rustflags = ["--cfg", "crossbeam_no_atomic_64"] + +# [target.riscv32imac-unknown-xous-elf] +# linker = "/usr/bin/mold" +# rustflags = [ +# "-C", "linker-flavor=ld", +# "-C", "relocation-model=pic", +# "-C", "link-arg=-shared", +# "--cfg", "crossbeam_no_atomic_64" +# ] + +[target.riscv32imac-unknown-xous-elf] +rustflags = ["--cfg", 'curve25519_dalek_backend="u32e_backend"'] \ No newline at end of file