Ondřej Hruška před 4 roky
rodič 72a51055d2
revize 7d933863d9
Podepsáno: MightyPork
ID GPG klíče: 2C5FD5035250423D
  1. 6
      Cargo.lock
  2. 4
      Cargo.toml
  3. 2
      src/embed/home.html
  4. 2
      src/main.rs

6
Cargo.lock vygenerováno

@ -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",

@ -1,6 +1,6 @@
[package]
name = "postit"
version = "0.2.1"
version = "0.2.2"
authors = ["Ondřej Hruška <ondra@ondrovo.com>"]
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"

@ -21,7 +21,7 @@
<h3>Read a file: GET /&lt;file-id&gt;</h3>
<ul>
<li>The remaining lifespan us returned in an <code>X-Expire</code> header (secs).
<li>The remaining lifespan is returned in an <code>X-Expire</code> header (secs).
</ul>
<h3>Update a file: PUT to /&lt;file-id&gt;</h3>

@ -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({

Načítá se…
Zrušit
Uložit