git.lucas.co / cce-core
GUI-free half of the cce toolkit: config, input, IPC, spec parsers
git clone https://git.lucas.co/cce-core.git

Cargo.toml (1.6K)

 1 [package]
 2 name = "cce-core"
 3 version = "0.1.0"
 4 edition = "2021"
 5 description = "The GUI-free half of the cce toolkit: config, input bindings, the animations switch, units, IPC and the DE's spec parsers"
 6 
 7 [lib]
 8 name = "cce_core"
 9 path = "src/lib.rs"
10 
11 [features]
12 default = ["config"]
13 # `config` and `input`: the KDL config and input.kdl. Off, the crate is the
14 # spec parsers, units, the animations switch and IPC alone, on log, web-time
15 # and libc — what cce-window-manager takes for its camera ramp.
16 config = ["dep:kdl", "dep:serde_json"]
17 # What `cfg(test)` means inside this crate, for a DEPENDENT's test build: the
18 # config home is a per-process directory nobody creates, natural scrolling
19 # reads false and the animations switch is on unless a test forces it, so a
20 # suite never reads the machine's ~/.config/cce or /run/cce. cce-ui turns it on
21 # through its dev-dependency only (resolver 2 keeps dev-dependency features out
22 # of normal builds), which is what keeps its suite isolated now that these
23 # modules live here; a shipped binary never has it.
24 test-isolation = []
25 # `l10n`: message catalogues in Project Fluent's format (fluent-bundle). Off by default:
26 # a process that shows no text (the compositor) does not carry it; cce-ui turns it on.
27 l10n = ["dep:fluent-bundle", "dep:unic-langid"]
28 
29 [dependencies]
30 kdl = { version = "4.6", optional = true }
31 serde_json = { version = "1.0", optional = true }
32 log = "0.4"
33 # `Instant` that works in the browser: std's panics on wasm32-unknown-unknown.
34 web-time = "1"
35 fluent-bundle = { version = "0.16", optional = true }
36 unic-langid = { version = "0.9", optional = true }
37 
38 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
39 libc = "0.2"