-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathCargo.toml
60 lines (51 loc) · 1.35 KB
/
Cargo.toml
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
[package]
name = "examples"
version = "0.0.0"
publish = false
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true
# https://github.com/dependabot/dependabot-core/issues/1156
autobins = false
build = "../build.rs"
[dependencies]
nginx-sys = { path = "../nginx-sys/", default-features = false }
ngx = { path = "../", default-features = false, features = ["std"] }
[dev-dependencies]
aws-sign-v4 = "0.3.0"
chrono = "0.4.23"
http = "1.1.0"
libc = "0.2.140"
tokio = { version = "1.33.0", features = ["full"] }
[[example]]
name = "curl"
path = "curl.rs"
crate-type = ["cdylib"]
[[example]]
name = "awssig"
path = "awssig.rs"
crate-type = ["cdylib"]
[[example]]
name = "httporigdst"
path = "httporigdst.rs"
crate-type = ["cdylib"]
required-features = ["linux"]
[[example]]
name = "upstream"
path = "upstream.rs"
crate-type = ["cdylib"]
[[example]]
name = "async"
path = "async.rs"
crate-type = ["cdylib"]
[features]
default = ["export-modules", "ngx/vendored"]
# Generate `ngx_modules` table with module exports
# The exports table is required for building loadable modules with --crate-type cdylib
# outside of the NGINX buildsystem. However, cargo currently does not detect
# this configuration automatically.
# See https://github.com/rust-lang/rust/issues/20267
export-modules = []
linux = []