about summary refs log tree commit diff
path: root/users/zseri
diff options
context:
space:
mode:
authorzseri <zseri.devel@ytrizja.de>2022-04-11T07·43+0200
committerzseri <zseri.devel@ytrizja.de>2022-04-11T07·59+0000
commitf6e12d9e78158c666a87b037824dc876b4b4316b (patch)
tree86b61b1c2b694a88b895dcd691a72cbf2432bf69 /users/zseri
parent2c54c8cfaa7ef1b7c6c9fd13b26b5ab1e85db947 (diff)
chore(zseri/s-r-sc): prepare for publishing on crates.io r/3940
Change-Id: Iaa9aab04a14dc2a62c5427e796d3df49bd31f9c3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5442
Tested-by: BuildkiteCI
Reviewed-by: zseri <zseri.devel@ytrizja.de>
Diffstat (limited to 'users/zseri')
-rw-r--r--users/zseri/store-ref-scanner/Cargo.toml5
-rw-r--r--users/zseri/store-ref-scanner/tests.nix32
2 files changed, 5 insertions, 32 deletions
diff --git a/users/zseri/store-ref-scanner/Cargo.toml b/users/zseri/store-ref-scanner/Cargo.toml
index ad565f09af..836d90e883 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 a4c82fe3a9..0000000000
--- 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
-  '';
-}