-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
75 lines (59 loc) · 1.78 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
[workspace]
members = [
".",
"xim-ctext",
"xim-gen",
"xim-parser",
]
[package]
name = "xim"
description = "XIM protocol parser, handler"
version = "0.4.0"
authors = ["Riey <creeper844@gmail.com>"]
repository = "https://github.com/Riey/xim-rs"
documentation = "https://docs.rs/xim"
categories = ["no-std", "parser-implementations"]
readme = "README.md"
keywords = ["x11", "xim", "x11rb", "no-std"]
edition = "2018"
license = "MIT"
rust-version = "1.64"
[features]
default = ["std"]
bootstrap-parser = ["xim-parser/bootstrap"]
std = ["xim-parser/std", "xim-ctext/std", "ahash/std"]
x11rb-client = ["client", "x11rb", "std"]
xlib-client = ["client", "x11-dl", "std"]
x11rb-server = ["server", "x11rb", "std"]
x11rb-xcb = ["x11rb/allow-unsafe-code", "std"]
# only for internal usage
client = []
server = []
[dependencies]
xim-parser = { path = "./xim-parser", version = "0.2.0", default-features = false }
xim-ctext = { path = "./xim-ctext", version = "0.3.0", default-features = false }
log = { version = "0.4", default-features = false }
ahash = { version = "0.8", default-features = false, features = ["compile-time-rng"] }
x11rb = { version = "0.13", optional = true }
x11-dl = { version = "2.18.5", optional = true }
hashbrown = { version = "0.14.0", default-features = false }
[[example]]
name = "x11rb_client"
path = "examples/x11rb_client.rs"
required-features = ["x11rb-client"]
[[example]]
name = "x11rb_server"
path = "examples/x11rb_server.rs"
required-features = ["x11rb-server"]
[[example]]
name = "xlib_client"
path = "examples/xlib_client.rs"
required-features = ["xlib-client"]
[dev-dependencies]
criterion = "0.5.1"
pretty_env_logger = "0.5.0"
[[bench]]
name = "rw"
harness = false
[package.metadata.docs.rs]
features = ["x11rb-client", "x11rb-server", "x11rb-xcb", "xlib-client"]