[package]
edition = "2024"
name = "jasn"
version = "0.2.0"
authors = ["Akash Rakholia"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for parsing and formatting JASN (Just Another Serialization Notation)"
readme = "README.md"
keywords = [
"json",
"yaml",
"parser",
"serialization",
"deserialization",
]
categories = ["encoding"]
license = "MIT"
repository = "https://github.com/arakholia/jasn-rs"
resolver = "2"
[features]
cli = [
"dep:clap",
"dep:clap_complete",
"dep:anyhow",
]
default = ["serde"]
serde = [
"dep:serde",
"jasn-core/serde",
]
[lib]
name = "jasn"
path = "src/lib.rs"
[[bin]]
name = "jasn"
path = "src/bin/jasn.rs"
required-features = ["cli"]
[[example]]
name = "parse_file"
path = "examples/parse_file.rs"
[[example]]
name = "serde_demo"
path = "examples/serde_demo.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "invalid_examples"
path = "tests/invalid_examples.rs"
[[test]]
name = "round_trip"
path = "tests/round_trip.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "valid_examples"
path = "tests/valid_examples.rs"
[dependencies.anyhow]
version = "1.0"
optional = true
[dependencies.base64]
version = "0.22"
[dependencies.clap]
version = "4.5"
features = ["derive"]
optional = true
[dependencies.clap_complete]
version = "4.5"
optional = true
[dependencies.jasn-core]
version = "0.2.0"
[dependencies.pest]
version = "2.7"
[dependencies.pest_derive]
version = "2.7"
[dependencies.serde]
version = "1.0"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.time]
version = "0.3"
features = [
"formatting",
"parsing",
"macros",
]
[dev-dependencies.assert_cmd]
version = "2.0"
[dev-dependencies.predicates]
version = "3.0"
[dev-dependencies.rstest]
version = "0.23"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.serde_bytes]
version = "0.11"
[dev-dependencies.time]
version = "0.3"
features = [
"formatting",
"parsing",
"macros",
"serde",
]