From f6e12d9e78158c666a87b037824dc876b4b4316b Mon Sep 17 00:00:00 2001 From: zseri Date: Mon, 11 Apr 2022 09:43:53 +0200 Subject: chore(zseri/s-r-sc): prepare for publishing on crates.io Change-Id: Iaa9aab04a14dc2a62c5427e796d3df49bd31f9c3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5442 Tested-by: BuildkiteCI Reviewed-by: zseri --- users/zseri/store-ref-scanner/Cargo.toml | 5 +++++ users/zseri/store-ref-scanner/tests.nix | 32 -------------------------------- 2 files changed, 5 insertions(+), 32 deletions(-) delete mode 100644 users/zseri/store-ref-scanner/tests.nix (limited to 'users/zseri/store-ref-scanner') diff --git a/users/zseri/store-ref-scanner/Cargo.toml b/users/zseri/store-ref-scanner/Cargo.toml index ad565f09af2e..836d90e88355 100644 --- a/users/zseri/store-ref-scanner/Cargo.toml +++ b/users/zseri/store-ref-scanner/Cargo.toml @@ -1,6 +1,11 @@ [package] name = "store-ref-scanner" version = "0.1.0" +description = "scanner/extractor of Nix-like store paths from byte arrays/streams" +license = "MIT OR Apache-2.0" +categories = ["no-std", "parsing"] edition = "2021" +homepage = "https://cs.tvl.fyi/depot/-/tree/users/zseri/store-ref-scanner" +include = ["/src"] [dependencies] diff --git a/users/zseri/store-ref-scanner/tests.nix b/users/zseri/store-ref-scanner/tests.nix deleted file mode 100644 index a4c82fe3a936..000000000000 --- a/users/zseri/store-ref-scanner/tests.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ depot, lib, pkgs, ... }: - -let - parent = depot.users.zseri.store-ref-scanner; -in -pkgs.buildRustCrate { - pname = "store-ref-scanner-tests"; - inherit (parent) crateName src version edition; - buildTests = true; - postInstall = '' - set -ex - export RUST_BACKTRACE=1 - # recreate a file hierarchy as when running tests with cargo - # the source for test data - # build outputs - testRoot=target/debug - mkdir -p $testRoot - chmod +w -R . - # test harness executables are suffixed with a hash, - # like cargo does this allows to prevent name collision - # with the main executables of the crate - hash=$(basename $out) - ls -lasR $out - for file in $out/tests/*; do - f=$testRoot/$(basename $file)-$hash - cp $file $f - $f 2>&1 | tee -a $out/tests.log - done - rm -rf $out/tests - set +ex - ''; -} -- cgit 1.4.1