Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
62 lines (56 loc) · 2.08 KB
/
Copy pathCargo.toml
File metadata and controls
62 lines (56 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[package]
name = "octane"
version = "0.2.0"
authors = ["weegee <41485688+Daksh14@users.noreply.github.com>", "aplet123 <aplet@aplet.me>"]
description = "A web server which is express-like, intuitive and high-powered"
license-file = "LICENSE"
homepage = "https://github.com/OctaneWeb/Octane"
readme = "README.md"
edition = "2018"
rust-version = "1.85"
[dependencies]
tokio-rustls = { version = "0.26.6", default-features = false, features = ["ring", "tls12"], optional = true }
openssl = { version = "0.10.30", optional = true }
tokio-openssl = { version = "0.6.5", optional = true }
tokio = { version = "1.54.1", features = ["net", "io-util", "rt", "fs", "sync", "time"], optional = true }
socket2 = { version = "0.6.5", optional = true }
serde = { version = "1.0.123", optional = true }
serde_json = { version = "1.0.59", optional = true }
[dependencies.octane_macros]
path = "octane_macros"
version = "0.1.2"
[dependencies.octane_http]
path = "octane_http"
version = "0.1"
default-features = false
[features]
default = ["std", "faithful", "query_strings", "cookies", "url_variables", "raw_headers"]
# The tokio server and everything built on it. Without it the crate is
# `#![no_std]` and only exposes the allocation-free core, `octane::portable`.
std = ["tokio", "socket2", "octane_http/std"]
faithful = ["std"]
test_crate = ["std"]
raw_headers = ["std"]
query_strings = ["std"]
extended_queries = ["std"]
cookies = ["std"]
json = ["std", "serde", "serde_json"]
# url variables like `/users/:id`, for both the tokio and the WASIp3 router
url_variables = []
rustls = ["std", "tokio-rustls"]
openSSL = ["std", "openssl", "tokio-openssl"]
# `octane::wasip3`: serve from a WASIp3 component over wasi:sockets. Only has
# an effect on wasm32-wasip3, and doesn't need `std` (use it with
# `default-features = false`)
wasm = ["octane_http/wasm"]
# exposes the parsers to the fuzz targets in octane_http/fuzz, not a stable API
fuzzing = ["std"]
[dev-dependencies]
tokio = { version = "1.54.1", features = ["macros", "rt-multi-thread"] }
curl = "0.4.33"
[workspace]
resolver = "2"
members = [
"octane_macros",
"octane_http"
]