summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-10-24 17:15:54 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-10-24 17:15:54 +0200
commit4d1dd4d6aad006c86c20df45b1c57ff96aa983d6 (patch)
treef5f0921e4ffe1df6bfa103a206e74e021774aad3
parent23ad83bc603c1b6d6bd9505142bf2462df5f9b4b (diff)
Add build setup for person-api-types
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--person-api-types/Cargo.lock65
-rw-r--r--person-api-types/default.nix17
2 files changed, 82 insertions, 0 deletions
diff --git a/person-api-types/Cargo.lock b/person-api-types/Cargo.lock
new file mode 100644
index 0000000..3cce0df
--- /dev/null
+++ b/person-api-types/Cargo.lock
@@ -0,0 +1,65 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "person-api-types"
+version = "0.1.0"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.30"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70"
+dependencies = [
+ "unicode-xid",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "serde"
+version = "1.0.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913"
+dependencies = [
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_derive"
+version = "1.0.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "syn"
+version = "1.0.80"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d010a1623fbd906d51d650a9916aaefc05ffa0e4053ff7fe601167f3e715d194"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-xid",
+]
+
+[[package]]
+name = "unicode-xid"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
diff --git a/person-api-types/default.nix b/person-api-types/default.nix
new file mode 100644
index 0000000..181f97c
--- /dev/null
+++ b/person-api-types/default.nix
@@ -0,0 +1,17 @@
+{ pkgs ? import <nixpkgs> {} }:
+
+with pkgs.stdenv;
+with pkgs.lib;
+
+pkgs.rustPlatform.buildRustPackage rec {
+ name = "person-api-types";
+ src = pkgs.nix-gitignore.gitignoreSourcePure "target\n" ./.;
+
+ buildType = "debug";
+
+ cargoSha256 = "sha256:1j4x994iybxsscwv2xm57w9my10v4bap6jw2krbfwsq153pd5dy7";
+
+ nativeBuildInputs = with pkgs; [ pkg-config makeWrapper ];
+ buildInputs = with pkgs; [ openssl ];
+}
+