-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (77 loc) · 2.03 KB
/
Cargo.toml
File metadata and controls
89 lines (77 loc) · 2.03 KB
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
[package]
name = "libhaystack"
version = "3.1.5"
description = "Rust implementation of the Haystack 4 data types, defs, filter, units, and encodings"
authors = ["J2 Innovations", "Radu Racariu <radur@j2inn.com>"]
edition = "2024"
license = "BSD-3-Clause"
repository = "https://github.com/j2inn/libhaystack/"
homepage = "https://github.com/j2inn/libhaystack/"
readme = "README.md"
categories = [
"command-line-utilities",
"data-structures",
"encoding",
"parser-implementations",
]
keywords = ["iot", "bas", "haystack"]
[lib]
name = "libhaystack"
crate-type = ["cdylib", "rlib"]
[[bench]]
name = "main"
harness = false
[[bench]]
name = "dict"
harness = false
[[bench]]
name = "gen_trio_fixture"
harness = false
[workspace]
members = ["unit-gen"]
[features]
# Default enabled features
default = ["encoders", "filter", "timezone", "units", "units-db", "c-api"]
# C API Features
c-api = ["c-api-filter", "c-api-json", "c-api-zinc", "c-api-brio", "c-api-trio"]
c-api-filter = ["filter"]
c-api-zinc = ["zinc"]
c-api-json = ["json"]
c-api-brio = ["brio"]
c-api-trio = ["trio"]
# Lib features
value = ["units", "timezone", "encoders"]
filter = ["value", "defs", "zinc-decoding"]
defs = ["value"]
units = []
units-db = []
timezone = ["timezone-db"]
timezone-db = []
encoders = ["value", "json", "zinc", "brio", "trio"]
json = ["json-encoding", "json-decoding"]
json-encoding = []
json-decoding = []
zinc = ["zinc-encoding", "zinc-decoding"]
zinc-encoding = []
zinc-decoding = []
brio = ["brio-encoding", "brio-decoding"]
brio-encoding = []
brio-decoding = []
trio = ["trio-encoding", "trio-decoding"]
trio-encoding = ["zinc-encoding"]
trio-decoding = ["zinc-decoding"]
[dependencies]
serde = "1.0"
serde_json = "1.0"
uuid = { version = "1.2", features = ["v4"] }
chrono = "0.4"
chrono-tz = "0.10"
regex = "1.12"
dashmap = "6.1"
[dev-dependencies]
criterion = "0.8"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
uuid = { version = "1.2", features = ["v4", "js"] }
web-sys = { version = "0.3", features = ["console"] }
console_error_panic_hook = "0.1"