forked from pyrossh/rust-embed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
105 lines (88 loc) · 3.25 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[package]
name = "rust-embed"
version = "8.1.0"
description = "Rust Custom Derive Macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev"
readme = "readme.md"
documentation = "https://docs.rs/rust-embed"
repository = "https://github.com/pyros2097/rust-embed"
license = "MIT"
keywords = ["http", "rocket", "static", "web", "server"]
categories = ["web-programming", "filesystem"]
authors = ["pyros2097 <[email protected]>"]
edition = "2018"
rust-version = "1.60.0"
[[example]]
name = "warp"
path = "examples/warp.rs"
required-features = ["warp-ex"]
[[example]]
name = "actix"
path = "examples/actix.rs"
required-features = ["actix"]
[[example]]
name = "rocket"
path = "examples/rocket.rs"
required-features = ["rocket"]
[[example]]
name = "axum"
path = "examples/axum.rs"
required-features = ["axum-ex"]
[[example]]
name = "axum-spa"
path = "examples/axum-spa/main.rs"
required-features = ["axum-ex"]
[[example]]
name = "poem"
path = "examples/poem.rs"
required-features = ["poem-ex"]
[[example]]
name = "salvo"
path = "examples/salvo.rs"
required-features = ["salvo-ex"]
[[test]]
name = "interpolated_path"
path = "tests/interpolated_path.rs"
required-features = ["interpolate-folder-path"]
[[test]]
name = "include_exclude"
path = "tests/include_exclude.rs"
required-features = ["include-exclude"]
[[test]]
name = "mime_guess"
path = "tests/mime_guess.rs"
required-features = ["mime-guess"]
[dependencies]
walkdir = "2.3.2"
rust-embed-impl = { version = "8.1.0", path = "impl"}
rust-embed-utils = { version = "8.1.0", path = "utils"}
include-flate = { version = "0.2", optional = true, features = ["stable"] }
actix-web = { version = "4", optional = true }
mime_guess = { version = "2", optional = true }
hex = { version = "0.4.3", optional = true }
tokio = { version = "1.0", optional = true, features = ["macros", "rt-multi-thread"] }
warp = { version = "0.3", default-features = false, optional = true }
rocket = { version = "0.5.0-rc.2", default-features = false, optional = true }
axum = { version = "0.6", default-features = false, features = ["http1", "tokio"], optional = true }
poem = { version = "1.3.30", default-features = false, features = ["server"], optional = true }
salvo = { version = "0.16", default-features = false, optional = true }
[dev-dependencies]
sha2 = "0.10"
[features]
debug-embed = ["rust-embed-impl/debug-embed", "rust-embed-utils/debug-embed"]
interpolate-folder-path = ["rust-embed-impl/interpolate-folder-path"]
compression = ["rust-embed-impl/compression", "include-flate"]
mime-guess = ["rust-embed-impl/mime-guess", "rust-embed-utils/mime-guess"]
include-exclude = ["rust-embed-impl/include-exclude", "rust-embed-utils/include-exclude"]
actix = ["actix-web", "mime_guess"]
warp-ex = ["warp", "tokio", "mime_guess"]
axum-ex = ["axum", "tokio", "mime_guess"]
poem-ex = ["poem", "tokio", "mime_guess", "hex"]
salvo-ex = ["salvo", "tokio", "mime_guess", "hex"]
[badges]
appveyor = { repository = "pyros2097/rust-embed" }
travis-ci = { repository = "pyros2097/rust-embed" }
is-it-maintained-issue-resolution = { repository = "pyros2097/rust-embed" }
is-it-maintained-open-issues = { repository = "pyros2097/rust-embed" }
maintenance = { status = "passively-maintained" }
[workspace]
members = ["impl", "utils"]