diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-24 11:18:09 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:58:31 +0200 |
commit | d892315af9e2261773571af3506556c243570eb0 (patch) | |
tree | 23b0da571d6768a42d858e6ce7cd2e8d1cf0e4b0 /gnu/packages/crates-web.scm | |
parent | 77160da5fcf191e5478de62a8e30aa77abc244ab (diff) |
gnu: rust-tiny-http: Move to (gnu packages crates-web).
* gnu/packages/crates-io.scm (rust-tiny-http-0.12, rust-tiny-http-0.6):
Move from here ...
* gnu/packages/crates-web.scm: ... to here.
Change-Id: If2e7ae9bb781928d8fa2330b903fff8ceff6da0d
Diffstat (limited to 'gnu/packages/crates-web.scm')
-rw-r--r-- | gnu/packages/crates-web.scm | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index a7ec656612c..c80ed8161ca 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -3082,6 +3082,59 @@ responses, and headers for the Rocket web framework.") alike. It's completely modular, and built directly for @code{async/await}.") (license (list license:expat license:asl2.0)))) +(define-public rust-tiny-http-0.12 + (package + (name "rust-tiny-http") + (version "0.12.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "tiny_http" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "10nw9kk2i2aq4l4csy0825qkq0l66f9mz2c1n57yg8hkckgib69q")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-ascii" ,rust-ascii-1) + ("rust-chunked-transfer" ,rust-chunked-transfer-1) + ("rust-httparse" ,rust-httparse-1) + ("rust-httpdate" ,rust-httpdate-1) + ("rust-log" ,rust-log-0.4) + ("rust-openssl" ,rust-openssl-0.10) + ("rust-rustls" ,rust-rustls-0.20) + ("rust-rustls-pemfile" ,rust-rustls-pemfile-0.2)) + #:cargo-development-inputs + (("rust-fdlimit" ,rust-fdlimit-0.1) + ("rust-rustc-serialize" ,rust-rustc-serialize-0.3) + ("rust-sha1" ,rust-sha1-0.6)))) + (home-page "https://github.com/tiny-http/tiny-http") + (synopsis "Low level HTTP server library") + (description "This package provides a low level HTTP server library.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-tiny-http-0.6 + (package + (inherit rust-tiny-http-0.12) + (name "rust-tiny-http") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "tiny_http" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0la95daknfh8g951ddb2zdz6av2459rncp6h9dh02pf98h5glq8n")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-ascii" ,rust-ascii-0.8) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-chunked-transfer" ,rust-chunked-transfer-0.3) + ("rust-log" ,rust-log-0.4) + ("rust-openssl" ,rust-openssl-0.10) + ("rust-url" ,rust-url-1)))))) + (define-public rust-trust-dns-client-0.22 (package (name "rust-trust-dns-client") |