2023-10-16 19:20:42 +00:00
|
|
|
# cargo-features = ["profile-rustflags"]
|
|
|
|
|
2022-07-16 03:26:49 +00:00
|
|
|
[package]
|
2023-07-14 02:32:56 +00:00
|
|
|
name = "organic"
|
2023-12-16 02:10:21 +00:00
|
|
|
version = "0.1.13"
|
2023-07-28 00:57:29 +00:00
|
|
|
authors = ["Tom Alexander <tom@fizz.buzz>"]
|
|
|
|
description = "An org-mode parser."
|
2022-07-16 03:26:49 +00:00
|
|
|
edition = "2021"
|
2022-07-17 22:45:51 +00:00
|
|
|
license = "0BSD"
|
2023-07-28 00:57:29 +00:00
|
|
|
repository = "https://code.fizz.buzz/talexander/organic"
|
2023-08-11 04:00:49 +00:00
|
|
|
readme = "README.md"
|
2023-07-28 00:57:29 +00:00
|
|
|
keywords = ["emacs", "org-mode"]
|
2023-07-28 01:19:36 +00:00
|
|
|
categories = ["parsing"]
|
2023-08-11 00:01:00 +00:00
|
|
|
resolver = "2"
|
2023-08-11 04:11:54 +00:00
|
|
|
include = [
|
|
|
|
"LICENSE",
|
|
|
|
"**/*.rs",
|
2023-08-30 03:28:17 +00:00
|
|
|
"Cargo.toml"
|
2023-08-11 04:11:54 +00:00
|
|
|
]
|
2022-07-16 03:26:49 +00:00
|
|
|
|
2023-04-19 02:38:18 +00:00
|
|
|
[lib]
|
|
|
|
name = "organic"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
2023-04-19 22:12:53 +00:00
|
|
|
[[bin]]
|
2023-09-09 08:03:53 +00:00
|
|
|
# This bin exists for development purposes only. The real target of this crate is the library.
|
|
|
|
name = "parse"
|
|
|
|
path = "src/main.rs"
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
# This bin exists for development purposes only. The real target of this crate is the library.
|
|
|
|
name = "compare"
|
|
|
|
path = "src/bin_compare.rs"
|
|
|
|
required-features = ["compare"]
|
2023-04-19 22:12:53 +00:00
|
|
|
|
2023-10-07 04:35:21 +00:00
|
|
|
[[bin]]
|
|
|
|
# This bin exists for development purposes only. The real target of this crate is the library.
|
|
|
|
name = "foreign_document_test"
|
|
|
|
path = "src/bin_foreign_document_test.rs"
|
|
|
|
required-features = ["foreign_document_test"]
|
|
|
|
|
2023-12-24 05:39:57 +00:00
|
|
|
[[bin]]
|
|
|
|
name = "wasm"
|
|
|
|
path = "src/bin_wasm.rs"
|
|
|
|
required-features = ["wasm"]
|
|
|
|
|
2023-12-25 18:10:40 +00:00
|
|
|
[[bin]]
|
|
|
|
name = "wasm_test"
|
|
|
|
path = "src/bin_wasm_test.rs"
|
|
|
|
required-features = ["wasm_test"]
|
|
|
|
|
2022-07-16 03:26:49 +00:00
|
|
|
[dependencies]
|
2023-10-11 23:47:30 +00:00
|
|
|
futures = { version = "0.3.28", optional = true }
|
2022-07-16 03:26:49 +00:00
|
|
|
nom = "7.1.1"
|
2023-08-11 01:22:06 +00:00
|
|
|
opentelemetry = { version = "0.20.0", optional = true, default-features = false, features = ["trace", "rt-tokio"] }
|
|
|
|
opentelemetry-otlp = { version = "0.13.0", optional = true }
|
|
|
|
opentelemetry-semantic-conventions = { version = "0.12.0", optional = true }
|
2023-12-24 05:39:57 +00:00
|
|
|
serde = { version = "1.0.193", optional = true, features = ["derive"] }
|
2023-12-24 06:35:21 +00:00
|
|
|
serde-wasm-bindgen = { version = "0.6.3", optional = true }
|
2023-12-25 17:03:59 +00:00
|
|
|
serde_json = { version = "1.0.108", optional = true }
|
2023-08-11 01:22:06 +00:00
|
|
|
tokio = { version = "1.30.0", optional = true, default-features = false, features = ["rt", "rt-multi-thread"] }
|
2023-08-11 00:01:00 +00:00
|
|
|
tracing = { version = "0.1.37", optional = true }
|
2023-08-11 01:22:06 +00:00
|
|
|
tracing-opentelemetry = { version = "0.20.0", optional = true }
|
|
|
|
tracing-subscriber = { version = "0.3.17", optional = true, features = ["env-filter"] }
|
2023-10-13 17:02:17 +00:00
|
|
|
walkdir = { version = "2.3.3", optional = true }
|
2023-12-24 05:59:41 +00:00
|
|
|
wasm-bindgen = { version = "0.2.89", optional = true }
|
2022-07-16 03:26:49 +00:00
|
|
|
|
2023-04-19 02:38:18 +00:00
|
|
|
[build-dependencies]
|
|
|
|
walkdir = "2.3.3"
|
|
|
|
|
2022-07-16 03:26:49 +00:00
|
|
|
[features]
|
2023-10-14 22:00:20 +00:00
|
|
|
default = []
|
2023-10-14 22:25:26 +00:00
|
|
|
compare = ["tokio/process", "tokio/macros"]
|
2023-10-14 22:00:20 +00:00
|
|
|
foreign_document_test = ["compare", "dep:futures", "tokio/sync", "dep:walkdir", "tokio/process"]
|
2023-08-11 01:22:06 +00:00
|
|
|
tracing = ["dep:opentelemetry", "dep:opentelemetry-otlp", "dep:opentelemetry-semantic-conventions", "dep:tokio", "dep:tracing", "dep:tracing-opentelemetry", "dep:tracing-subscriber"]
|
2023-10-17 17:32:01 +00:00
|
|
|
event_count = []
|
2023-12-25 18:10:40 +00:00
|
|
|
wasm = ["dep:serde", "dep:wasm-bindgen", "dep:serde-wasm-bindgen"]
|
|
|
|
wasm_test = ["wasm", "dep:serde_json"]
|
2023-04-19 04:22:25 +00:00
|
|
|
|
2023-08-27 20:51:44 +00:00
|
|
|
# Optimized build for any sort of release.
|
2023-08-21 05:26:52 +00:00
|
|
|
[profile.release-lto]
|
|
|
|
inherits = "release"
|
2023-04-19 04:22:25 +00:00
|
|
|
lto = true
|
|
|
|
strip = "symbols"
|
2023-08-21 05:26:52 +00:00
|
|
|
|
2023-10-16 19:20:42 +00:00
|
|
|
# Optimized build for local execution.
|
|
|
|
# [profile.native]
|
|
|
|
# inherits = "release"
|
|
|
|
# lto = true
|
|
|
|
# strip = "symbols"
|
|
|
|
# rustflags = ["-C", "target-cpu=native"]
|
|
|
|
|
2023-08-27 20:51:44 +00:00
|
|
|
# Profile for performance testing with the "perf" tool. Notably keeps debug enabled and does not strip symbols to make reading the perf output easier.
|
2023-08-21 05:26:52 +00:00
|
|
|
[profile.perf]
|
|
|
|
inherits = "release"
|
|
|
|
lto = true
|
|
|
|
debug = true
|
2023-12-24 05:39:57 +00:00
|
|
|
|
|
|
|
[profile.wasm]
|
|
|
|
inherits = "release"
|
|
|
|
lto = true
|
|
|
|
strip = true
|