Merge pull request #15 from nixops4/move-to-root

maint: Move to /rust/* to /
This commit is contained in:
Robert Hensing 2025-10-26 23:33:49 +01:00 committed by GitHub
commit 62d4eb37a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 5 additions and 5 deletions

View file

View file

@ -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

View file

@ -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`

View file

@ -21,7 +21,7 @@
imports = [
inputs.nix-cargo-integration.flakeModule
inputs.flake-parts.flakeModules.partitions
./rust/nci.nix
./nci.nix
];
systems = [
"x86_64-linux"