Skip to content

Commit

Permalink
Merge pull request #838 from raphlinus/fix-526
Browse files Browse the repository at this point in the history
feat: separate escape.rs in another crate
  • Loading branch information
Martin1887 authored Feb 3, 2024
2 parents 76eb589 + f575d4b commit 67a1407
Show file tree
Hide file tree
Showing 97 changed files with 354 additions and 379 deletions.
232 changes: 112 additions & 120 deletions Cargo.lock

Large diffs are not rendered by default.

88 changes: 3 additions & 85 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,85 +1,3 @@
[package]
name = "pulldown-cmark"
version = "0.9.2"
authors = [
"Raph Levien <[email protected]>",
"Marcus Klaas de Vries <[email protected]>",
]
license = "MIT"
description = "A pull parser for CommonMark"
repository = "https://github.com/raphlinus/pulldown-cmark"
keywords = ["markdown", "commonmark"]
categories = ["text-processing"]
edition = "2021"
rust-version = "1.70" # Update README.md and azure-pipelines.yml if this changes.
readme = "README.md"
exclude = [
"/third_party/**/*",
"/tools/**/*",
"/specs/**/*",
"/fuzzer/**/*",
"/azure-pipelines.yml",
]

build = "build.rs"

[[bin]]
name = "pulldown-cmark"
required-features = ["getopts"]
doc = false

[[bench]]
name = "html_rendering"
harness = false

[[bench]]
name = "lib"
harness = false

[[bench]]
name = "markdown-it"
harness = false

[[example]]
name = "event-filter"
required-features = ["html"]

[[example]]
name = "footnote-rewrite"
required-features = ["html"]

[[example]]
name = "parser-map-event-print"
required-features = ["html"]

[[example]]
name = "parser-map-tag-print"
required-features = ["html"]

[[example]]
name = "string-to-string"
required-features = ["html"]

[[example]]
name = "broken-link-callbacks"
required-features = ["html"]

[dependencies]
bitflags = "2"
unicase = "2.6"
memchr = "2.5"
getopts = { version = "0.2", optional = true }
serde = { version = "1.0", optional = true, features = ["derive"] }

[dev-dependencies]
lazy_static = "1.4"
criterion = "0.5"
regex = "1.6"
serde_json = "1.0.61"
bincode = "1.3.1"

[features]
default = ["getopts", "html"]
gen-tests = []
simd = []
html = []
[workspace]
members = ["pulldown-cmark", "pulldown-cmark-escape"]
resolver = "2"
6 changes: 6 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@ pool:

steps:
- script: rustup default 1.70.0
workingDirectory: pulldown-cmark
displayName: Install rust
- script: cargo build --all
workingDirectory: pulldown-cmark
displayName: Cargo build
- script: cargo test --all
workingDirectory: pulldown-cmark
displayName: Cargo test
- script: cargo test --all --features=simd,gen-tests
workingDirectory: pulldown-cmark
displayName: Cargo test with simd feature enabled
- script: cargo test --all --features=serde
workingDirectory: pulldown-cmark
displayName: Cargo test with serde feature enabled
- script: cargo test --all --no-default-features
workingDirectory: pulldown-cmark
displayName: Cargo test without default features
- script: cargo run --release -- --regressions
workingDirectory: fuzzer
Expand Down
136 changes: 44 additions & 92 deletions fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rquickjs = { version = "0.3", features = ["parallel"] }
urlencoding = "2.1.2"

[dependencies.pulldown-cmark]
path = ".."
path = "../pulldown-cmark"

# Prevent this from interfering with workspaces
[workspace]
Expand Down
Loading

0 comments on commit 67a1407

Please sign in to comment.