-
Notifications
You must be signed in to change notification settings - Fork 57
/
Cargo.toml
51 lines (41 loc) · 1.16 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
[package]
name = "mime_guess"
version = "2.0.5"
authors = ["Austin Bonander <austin.bonander@gmail.com>"]
license = "MIT"
description = "A simple crate for detection of a file's MIME type by its extension."
keywords = ["mime", "filesystem", "extension"]
repository = "https://github.com/abonander/mime_guess"
documentation = "https://docs.rs/mime_guess/"
readme = "README.md"
[features]
default = ["rev-mappings"]
# FIXME: when `phf` release 0.8.0 is ready
# phf-map = ["phf", "phf_codegen"]
# generate reverse-mappings for lookup of extensions by MIME type
# default-on but can be turned off for smaller generated code
rev-mappings = []
[dependencies]
mime = "0.3"
unicase = "2.4.0"
#[dependencies.phf]
## version = "0.7.24"
## git = "https://github.com/sfackler/rust-phf"
#path = "../rust-phf/phf"
#features = ["unicase"]
#optional = true
[build-dependencies]
unicase = "2.4.0"
#[build-dependencies.phf_codegen]
#version = "0.7.24"
#git = "https://github.com/sfackler/rust-phf"
#path = "../rust-phf/phf_codegen"
#optional = true
[dev-dependencies]
criterion = "0.3"
[[example]]
name = "rev_map"
required-features = ["rev-mappings"]
[[bench]]
name = "benchmark"
harness = false