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 diff --git a/loader/curve25519-dalek-loader/src/traits.rs b/loader/curve25519-dalek-loader/src/traits.rs index d127b3ed2..625c4b97b 100644 --- a/loader/curve25519-dalek-loader/src/traits.rs +++ b/loader/curve25519-dalek-loader/src/traits.rs @@ -388,6 +388,7 @@ pub trait VartimePrecomputedMultiscalarMul: Sized { /// This trait is only for debugging/testing, since it should be /// impossible for a `curve25519-dalek` user to construct an invalid /// point. +#[allow(dead_code)] pub(crate) trait ValidityCheck { /// Checks whether the point is on the curve. Not CT. fn is_valid(&self) -> bool;