Merge pull request #15 from nixops4/move-to-root
maint: Move to /rust/* to /
This commit is contained in:
commit
62d4eb37a2
33 changed files with 5 additions and 5 deletions
0
rust/Cargo.lock → Cargo.lock
generated
0
rust/Cargo.lock → Cargo.lock
generated
|
|
@ -16,7 +16,7 @@
|
|||
pre-commit.settings.hooks.nixfmt-rfc-style.enable = true;
|
||||
# Temporarily disable rustfmt due to configuration issues
|
||||
# pre-commit.settings.hooks.rustfmt.enable = true;
|
||||
pre-commit.settings.settings.rust.cargoManifestPath = "./rust/Cargo.toml";
|
||||
pre-commit.settings.settings.rust.cargoManifestPath = "./Cargo.toml";
|
||||
|
||||
# Check that we're using ///-style doc comments in Rust code.
|
||||
#
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
];
|
||||
shellHook = ''
|
||||
${config.pre-commit.installationScript}
|
||||
source ${../rust/bindgen-gcc.sh}
|
||||
source ${../bindgen-gcc.sh}
|
||||
echo 1>&2 "Welcome to the development shell!"
|
||||
'';
|
||||
# rust-analyzer needs a NIX_PATH for some reason
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
If `cargo-valgrind` is broken, you may run `valgrind` manually.
|
||||
|
||||
1. `cd rust; cargo test -v`
|
||||
1. `cargo test -v`
|
||||
2. find the relevant test suite executable in the log
|
||||
- example: `/home/user/src/nix-bindings-rust/rust/target/debug/deps/nix_util-036ec381a9e3fd6d`
|
||||
- example: `/home/user/src/nix-bindings-rust/target/debug/deps/nix_util-036ec381a9e3fd6d`
|
||||
3. `valgrind --leak-check=full <paste the test exe>`
|
||||
4. check that
|
||||
- `definitely lost: 0 bytes in 0 blocks`
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
imports = [
|
||||
inputs.nix-cargo-integration.flakeModule
|
||||
inputs.flake-parts.flakeModules.partitions
|
||||
./rust/nci.nix
|
||||
./nci.nix
|
||||
];
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue