ticker-update: move into workspace member

This commit is contained in:
Astro 2019-10-25 23:30:49 +02:00
parent caebbd37d8
commit b5f731aefe
10 changed files with 28 additions and 24 deletions

26
Cargo.lock generated
View File

@ -978,19 +978,6 @@ dependencies = [
"winreg 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", "winreg 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]]
name = "rust-ticker"
version = "0.1.0"
dependencies = [
"chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)",
"crossbeam 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"diesel 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
"reqwest 0.9.21 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_yaml 0.8.11 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]] [[package]]
name = "rustc-demangle" name = "rustc-demangle"
version = "0.1.16" version = "0.1.16"
@ -1175,6 +1162,19 @@ dependencies = [
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]]
name = "ticker-update"
version = "0.1.0"
dependencies = [
"chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)",
"crossbeam 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"diesel 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
"reqwest 0.9.21 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_yaml 0.8.11 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]] [[package]]
name = "time" name = "time"
version = "0.1.42" version = "0.1.42"

View File

@ -2,12 +2,18 @@
with pkgs; with pkgs;
rustPlatform.buildRustPackage { let
name = "ticker"; ticker-update = rustPlatform.buildRustPackage {
src = ./.; name = "ticker-update";
buildInputs = [ src = ./.;
pkg-config openssl postgresql.lib buildInputs = [
cargo rustc pkg-config openssl postgresql.lib
]; cargo rustc
cargoSha256 = "0igr8k46yl5a89zjymp6914faawcvqza08h6l9pcplpikhbvls42"; ];
preBuild = "pushd ticker-update";
postBuild = "popd";
cargoSha256 = "0igr8k46yl5a89zjymp6914faawcvqza08h6l9pcplpikhbvls42";
};
in {
inherit ticker-update;
} }

View File

@ -1,11 +1,9 @@
[package] [package]
name = "rust-ticker" name = "ticker-update"
version = "0.1.0" version = "0.1.0"
authors = ["Astro <astro@spaceboyz.net>"] authors = ["Astro <astro@spaceboyz.net>"]
edition = "2018" edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
reqwest = "~0.9" reqwest = "~0.9"
diesel = { version = "~1", features = ["postgres", "chrono"] } diesel = { version = "~1", features = ["postgres", "chrono"] }