[package]
edition = "2024"
rust-version = "1.96.0"
name = "jsonld-core"
version = "0.23.3"
authors = [
"Timothée Haudebourg <author@haudebourg.net>",
"Matej Škvarč <matej.skvarc@senlab.io>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "JSON-LD core types and traits"
documentation = "https://docs.rs/jsonld-core"
readme = "README.md"
keywords = [
"json-ld",
"json",
"semantic-web",
"linked-data",
"rdf",
]
categories = [
"web-programming",
"database",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mskvarc/jsonld/"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
rustc-args = [
"-C",
"target-cpu=native",
]
[features]
ahash = ["jsonld-syntax/ahash"]
bytewise-iri = [
"iri-rs/bytewise",
"jsonld-syntax/bytewise-iri",
]
default = ["bytewise-iri"]
gxhash = ["jsonld-syntax/gxhash"]
reqwest = [
"dep:reqwest",
"utf8-decode",
"reqwest-middleware",
]
serde = [
"dep:serde",
"jstrict/serde",
"jsonld-syntax/serde",
]
serde-json = [
"dep:serde_json",
"jstrict/serde_json",
"jsonld-syntax/serde-json",
]
sonic-rs = [
"dep:sonic-rs",
"jstrict/sonic-rs",
"jsonld-syntax/sonic-rs",
]
[lib]
name = "jsonld_core"
path = "src/lib.rs"
[[test]]
name = "regressions"
path = "tests/regressions.rs"
[dependencies.contextual]
version = "0.1.6"
[dependencies.derive-where]
version = "1.7.0"
[dependencies.foldhash]
version = "0.2.0"
[dependencies.hashbrown]
version = "0.17.1"
[dependencies.indexmap]
version = "2.14.2"
[dependencies.iri-rs]
version = "3.4.1"
features = ["static"]
[dependencies.jsonld-syntax]
version = "0.23.3"
[dependencies.jstrict]
version = "0.15.0"
features = [
"contextual",
"canonicalize",
]
[dependencies.langtag]
version = "1.1.0"
[dependencies.ld-core]
version = "0.5.0"
[dependencies.log]
version = "0.4.34"
[dependencies.mediatype]
version = "0.23.0"
[dependencies.once_cell]
version = "1.21.4"
[dependencies.parking_lot]
version = "0.12.5"
[dependencies.pretty_dtoa]
version = "0.3.0"
[dependencies.rdfx]
version = "0.24.0"
[dependencies.reqwest]
version = "0.13.5"
optional = true
[dependencies.reqwest-middleware]
version = "0.5.2"
optional = true
[dependencies.ryu-js]
version = "1.0.3"
[dependencies.serde]
version = "1.0.229"
optional = true
[dependencies.serde_json]
version = "1.0.151"
optional = true
[dependencies.smallvec]
version = "1.16.2"
[dependencies.sonic-rs]
version = "0.5.10"
optional = true
[dependencies.thiserror]
version = "2.0.21"
[dependencies.utf8-decode]
version = "2.0.0"
optional = true
[dev-dependencies.serde_json]
version = "1.0.151"
[lints.clippy]
expect_used = "deny"
format_push_string = "allow"
inline_always = "allow"
iter_without_into_iter = "allow"
match_same_arms = "allow"
panic = "deny"
struct_excessive_bools = "allow"
struct_field_names = "allow"
todo = "deny"
too_many_arguments = "allow"
too_many_lines = "allow"
unimplemented = "deny"
unreachable = "deny"
unused_async_trait_impl = "allow"
unwrap_used = "deny"
wildcard_enum_match_arm = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
async_fn_in_trait = "allow"