diff --git a/Cargo.lock b/Cargo.lock index 90d581b..a1f2df5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -223,9 +223,9 @@ dependencies = [ [[package]] name = "clappconfig" -version = "0.3.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3a6d119a70ba4007294f6da5d60f8df42feb151f266693391d1c476f41d0947" +checksum = "ee3bdf54005ba6e218706edda1659879b0bc2c28d01e8f15a45b33ff52c89848" dependencies = [ "anyhow", "clap", @@ -735,7 +735,7 @@ dependencies = [ [[package]] name = "postit" -version = "0.2.1" +version = "0.2.2" dependencies = [ "anyhow", "bincode", diff --git a/Cargo.toml b/Cargo.toml index 9922f3e..bb613ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "postit" -version = "0.2.1" +version = "0.2.2" authors = ["Ondřej Hruška "] edition = "2018" publish = false @@ -8,7 +8,7 @@ publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -clappconfig = "0.3.1" +clappconfig = "0.4.0" rouille = "3.0.0" parking_lot = "0.10.2" serde_json = "1.0.52" diff --git a/src/embed/home.html b/src/embed/home.html index 6f4a1f5..e97138d 100644 --- a/src/embed/home.html +++ b/src/embed/home.html @@ -21,7 +21,7 @@

Read a file: GET /<file-id>

Update a file: PUT to /<file-id>

diff --git a/src/main.rs b/src/main.rs index 04c3d0a..59ad124 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,7 +77,7 @@ impl Post { } fn main() -> anyhow::Result<()> { - let config = Config::init("postit", "postit.json", None)?; + let config = Config::init("postit", "postit.json", env!("CARGO_PKG_VERSION"))?; let serve_at = format!("{}:{}", config.host, config.port); let store = Mutex::new({