-
-
Notifications
You must be signed in to change notification settings - Fork 127
/
Cargo.toml
99 lines (83 loc) · 2.52 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[workspace]
members = ["logos-cli", "logos-codegen", "logos-derive", "tests", "fuzz"]
resolver = "2"
[workspace.package]
authors = [
"Maciej Hirsz <[email protected]>",
"Jérome Eertmans (maintainer) <[email protected]>",
]
categories = ["parsing", "text-processing"]
description = "Create ridiculously fast Lexers"
edition = "2021"
homepage = "https://logos.maciej.codes/"
keywords = ["lexer", "lexical", "tokenizer", "parser", "no_std"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/maciejhirsz/logos"
rust-version = "1.74.0"
version = "0.14.3"
[package]
name = "logos"
authors.workspace = true
categories.workspace = true
description.workspace = true
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
readme.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
[package.metadata]
msrv = "1.74.0" # Needed to duplicate, because cargo-msrv does not support workspace
[package.metadata.release]
pre-release-replacements = [
{file="book/src/getting-started.md", search="logos = \"[0-9]+\\.[0-9]+\\.[0-9]+\"", replace="logos = \"{{version}}\"", exactly=1},
]
shared-version = true
[lib]
bench = false
[features]
# Enables debug messages
debug = ["logos-derive?/debug"]
default = ["export_derive", "std"]
# Re-exports the `Logos` derive macro, so that end user only needs to
# import this crate and `use logos::Logos` to get both the trait and
# derive proc macro.
export_derive = ["logos-derive"]
# Should the crate use the standard library?
std = []
# Use safe alternatives for unsafe code (may impact performance)?
forbid_unsafe = ["logos-derive?/forbid_unsafe"]
[package.metadata.docs.rs]
features = ["debug"]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
rustdoc-args = ["--cfg", "docsrs"]
[profile]
bench = {lto = true}
release = {lto = true}
[dependencies]
logos-derive = {version = "0.14.3", path = "./logos-derive", optional = true}
[dev-dependencies]
ariadne = {version = "0.4", features = ["auto-color"]}
chumsky = {version = "0.9.3" }
[[example]]
doc-scrape-examples = true # Only needed once, because requires dev-dependencies
name = "brainfuck"
path = "examples/brainfuck.rs"
[[example]]
name = "calculator"
path = "examples/calculator.rs"
[[example]]
name = "custom_error"
path = "examples/custom_error.rs"
[[example]]
name = "extras"
path = "examples/extras.rs"
[[example]]
name = "json"
path = "examples/json.rs"
[[example]]
name = "json-borrowed"
path = "examples/json_borrowed.rs"