-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from maciejhirsz/logos2
Releasing Logos2
- Loading branch information
Showing
49 changed files
with
652 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.12.0 | ||
hooks: | ||
- id: pretty-format-yaml | ||
args: [--autofix] | ||
- id: pretty-format-toml | ||
exclude: Cargo.lock | ||
args: [--autofix, --trailing-commas] | ||
- repo: https://github.com/keewis/blackdoc | ||
rev: v0.3.9 | ||
hooks: | ||
- id: blackdoc | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.2.0 | ||
hooks: | ||
- id: ruff | ||
args: [--fix] | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.8.0 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: [types-requests, types-setuptools] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,82 @@ | ||
[workspace] | ||
members = ["logos", "logos-cli", "logos-codegen", "logos-derive", "tests"] | ||
members = ["logos-cli", "logos-codegen", "logos-derive", "tests"] | ||
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.65.0" | ||
version = "0.13.0" | ||
|
||
[package] | ||
name = "logos2" | ||
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.65.0" # Needed to duplicate, because cargo-msrv does not support workspace | ||
|
||
[lib] | ||
bench = false | ||
name = "logos" | ||
|
||
[features] | ||
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-derive2"] | ||
# Should the crate use the standard library? | ||
std = [] | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[package.metadata.release] | ||
shared-version = true | ||
tag-name = "v{{version}}" | ||
|
||
[profile] | ||
release = { lto = true } | ||
bench = { lto = true } | ||
bench = {lto = true} | ||
release = {lto = true} | ||
|
||
[dependencies] | ||
logos-derive2 = {version = "0.13.0", path = "./logos-derive", optional = true} | ||
|
||
[dev-dependencies] | ||
ariadne = {version = "0.2.0", features = ["auto-color"]} | ||
|
||
[[example]] | ||
doc-scrape-examples = true # Only needed once, because requires dev-dependencies | ||
name = "brainfuck" | ||
path = "examples/brainfuck.rs" | ||
|
||
[[example]] | ||
name = "custom_error" | ||
path = "examples/custom_error.rs" | ||
|
||
[[example]] | ||
name = "extras" | ||
path = "examples/extras.rs" | ||
|
||
[[example]] | ||
name = "json" | ||
path = "examples/json.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
[book] | ||
authors = ["Maciej Hirsz"] | ||
authors = ["Maciej Hirsz <[email protected]>", "Jérome Eertmans (maintainer) <[email protected]>"] | ||
language = "en" | ||
multilingual = false | ||
src = "src" | ||
title = "Logos Handbook" | ||
|
||
[preprocessor.admonish] | ||
command = "mdbook-admonish" | ||
assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install` | ||
|
||
[output] | ||
|
||
[output.html] | ||
additional-css = ["./mdbook-admonish.css"] |
Oops, something went wrong.