Highly ambitious ATProtocol AppView service and sdks
1[package]
2name = "slices-lexicon"
3version = "0.3.0"
4edition = "2021"
5description = "AT Protocol lexicon validation library for Slices"
6license = "MIT"
7repository = "https://tangled.org/@slices.network/slices/tree/main/crates/slices-lexicon"
8documentation = "https://docs.rs/slices-lexicon"
9readme = "README.md"
10keywords = ["atproto", "lexicon", "validation", "wasm", "bluesky"]
11categories = ["wasm", "web-programming", "parser-implementations"]
12
13[lib]
14crate-type = ["rlib", "cdylib"]
15
16[dependencies]
17# Serialization
18serde = { version = "1.0", features = ["derive"] }
19serde_json = "1.0"
20
21# Error handling
22thiserror = "2.0"
23
24# Time handling
25chrono = { version = "0.4", features = ["serde"] }
26
27# Regex for string format validation
28regex = "1.0"
29
30# Unicode segmentation for grapheme clusters
31unicode-segmentation = "1.0"
32
33# Base64 encoding/decoding for bytes validation
34base64 = "0.21"
35
36# CID validation for IPFS content addressing
37cid = "0.11"
38
39# WASM bindings (optional)
40wasm-bindgen = { version = "0.2", optional = true }
41
42# JavaScript interop types (optional)
43js-sys = { version = "0.3", optional = true }
44
45# Console logging for WASM (optional)
46console_error_panic_hook = { version = "0.1", optional = true }
47
48[dependencies.web-sys]
49version = "0.3"
50features = [
51 "console",
52]
53optional = true
54
55[features]
56default = []
57wasm = ["wasm-bindgen", "js-sys", "web-sys", "console_error_panic_hook"]
58console_error_panic_hook = ["dep:console_error_panic_hook"]
59
60[package.metadata.wasm-pack.profile.release]
61wasm-opt = ["-O4"]