2026-09-19 17:54:18 -04:00
|
|
|
[package]
|
|
|
|
|
name = "catena"
|
|
|
|
|
description = "The catena libraries behind one surface, for calling in process rather than as a subprocess."
|
|
|
|
|
version.workspace = true
|
|
|
|
|
edition.workspace = true
|
|
|
|
|
rust-version.workspace = true
|
|
|
|
|
license.workspace = true
|
|
|
|
|
repository.workspace = true
|
|
|
|
|
|
2026-09-19 18:40:08 -04:00
|
|
|
# wasm-pack ships a wasm-opt older than the WebAssembly rustc now emits, and
|
|
|
|
|
# it rejects the module rather than assuming the features are allowed. Naming
|
|
|
|
|
# them keeps the optimisation instead of turning it off; every one is years
|
|
|
|
|
# old and in every runtime that matters.
|
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
|
|
|
wasm-opt = [
|
|
|
|
|
"-O",
|
|
|
|
|
"--enable-bulk-memory",
|
|
|
|
|
"--enable-nontrapping-float-to-int",
|
|
|
|
|
"--enable-sign-ext",
|
|
|
|
|
"--enable-mutable-globals",
|
|
|
|
|
"--enable-reference-types",
|
|
|
|
|
]
|
|
|
|
|
|
2026-09-19 17:54:18 -04:00
|
|
|
[lib]
|
|
|
|
|
name = "catena"
|
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
# `cdylib` for the bindings, `rlib` so the workspace can still depend on it.
|
|
|
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
booksniff.workspace = true
|
|
|
|
|
chunkmd.workspace = true
|
|
|
|
|
corpus-core.workspace = true
|
2026-09-19 19:19:54 -04:00
|
|
|
idnorm.workspace = true
|
2026-09-19 17:54:18 -04:00
|
|
|
cuekit.workspace = true
|
|
|
|
|
cuepack.workspace = true
|
2026-09-20 09:00:26 -04:00
|
|
|
cueseg.workspace = true
|
2026-09-19 17:54:18 -04:00
|
|
|
mdscrub.workspace = true
|
|
|
|
|
mdsplit.workspace = true
|
|
|
|
|
rrf.workspace = true
|
2026-09-19 19:03:47 -04:00
|
|
|
seriesof.workspace = true
|
2026-09-19 17:54:18 -04:00
|
|
|
serde.workspace = true
|
|
|
|
|
serde_json.workspace = true
|
|
|
|
|
textkit.workspace = true
|
|
|
|
|
|
|
|
|
|
pyo3 = { workspace = true, optional = true }
|
|
|
|
|
|
2026-09-19 18:40:08 -04:00
|
|
|
# The JavaScript build. Only ever compiled for a wasm32 target; on any other
|
|
|
|
|
# the module is compiled out and these sit unused.
|
|
|
|
|
wasm-bindgen = { workspace = true, optional = true }
|
|
|
|
|
serde-wasm-bindgen = { workspace = true, optional = true }
|
|
|
|
|
|
2026-09-19 17:54:18 -04:00
|
|
|
[features]
|
|
|
|
|
# Only maturin turns this on. pyo3's extension-module feature leaves the
|
|
|
|
|
# Python symbols to be resolved by the interpreter at load time, so an
|
|
|
|
|
# ordinary `cargo build` would fail to link if it were on by default.
|
|
|
|
|
python = ["dep:pyo3"]
|
2026-09-19 18:40:08 -04:00
|
|
|
# The C ABI. Off by default so an ordinary build does not also export a
|
|
|
|
|
# hundred symbols nobody asked for.
|
|
|
|
|
capi = []
|
|
|
|
|
# JavaScript and TypeScript, through WebAssembly.
|
|
|
|
|
wasm = ["dep:wasm-bindgen", "dep:serde-wasm-bindgen"]
|
2026-09-19 17:54:18 -04:00
|
|
|
|
2026-09-19 18:40:08 -04:00
|
|
|
# Not `workspace = true`. The workspace forbids unsafe, and a C ABI is unsafe
|
|
|
|
|
# by definition: it takes raw pointers from a caller this cannot see. The
|
|
|
|
|
# allowance is the narrowest thing that compiles — every `unsafe` in this
|
|
|
|
|
# crate is in `src/capi.rs`, and `unsafe_op_in_unsafe_fn` keeps each one
|
|
|
|
|
# spelled out rather than inherited from the function signature.
|
|
|
|
|
[lints.rust]
|
|
|
|
|
unsafe_code = "allow"
|
|
|
|
|
unsafe_op_in_unsafe_fn = "deny"
|
|
|
|
|
missing_docs = "warn"
|