Skip to content

Commit

Permalink
fix: simd was not be using after the new crate pulldown-cmark-escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin1887 committed Apr 23, 2024
1 parent eac0027 commit 1cfaf02
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 43 deletions.
79 changes: 43 additions & 36 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -160,7 +160,7 @@ By default, the binary is built as well. If you don't want/need it, then build l
Or put in your `Cargo.toml` file:

```toml
pulldown-cmark = { version = "0.9.2", default-features = false }
pulldown-cmark = { version = "0.10.3", default-features = false }
```

SIMD accelerated scanners are available for the x64 platform from version 0.5 onwards. To
Expand All @@ -173,7 +173,7 @@ enable them, build with simd feature:
Or add the feature to your project's `Cargo.toml`:

```toml
pulldown-cmark = { version = "0.9.2", default-features = false, features = ["simd"] }
pulldown-cmark = { version = "0.10.3", default-features = false, features = ["simd"] }
```

For a higher release performance you may want this configuration in your profile release:
Expand Down
9 changes: 6 additions & 3 deletions pulldown-cmark-escape/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pulldown-cmark-escape"
version = "0.10.0"
version = "0.10.1"
authors = [
"Raph Levien <raph.levien@gmail.com>",
"Marcus Klaas de Vries <mail@marcusklaas.nl>",
Expand All @@ -11,5 +11,8 @@ repository = "https://github.com/raphlinus/pulldown-cmark"
keywords = ["escape", "html", "markdown", "commonmark"]
categories = ["text-processing"]
edition = "2021"
rust-version = "1.70" # Update README.md and azure-pipelines.yml if this changes.
readme = "../README.md"
rust-version = "1.70" # Update README.md and GitHub action when changing this
readme = "./README.md"

[features]
simd = []
26 changes: 26 additions & 0 deletions pulldown-cmark-escape/README.md
@@ -0,0 +1,26 @@
# pulldown-cmark-escape

[![Tests](https://github.com/pulldown-cmark/pulldown-cmark/actions/workflows/rust.yml/badge.svg)](https://github.com/pulldown-cmark/pulldown-cmark/actions/workflows/rust.yml)
[![Docs](https://docs.rs/pulldown-cmark/badge.svg)](https://docs.rs/pulldown-cmark)
[![Crates.io](https://img.shields.io/crates/v/pulldown-cmark-escape.svg?maxAge=2592000)](https://crates.io/crates/pulldown-cmark-escape)

[Documentation](https://docs.rs/pulldown-cmark/)

This crate allows to escape HTML and links and it is part of the pulldown-cmark
project, by providing `escape_html`, `escape_html_body_text` (for
a less long output in body HTML strings) and `escape_href` functions.

## Authors

The main author is Raph Levien. The implementation of the new design (v0.3+) was
completed by Marcus Klaas de Vries. Since 2023, the development has been driven
by Martín Pozo, Michael Howell, Roope Salmi and Martin Geisler.

## License

This software is under the MIT license. See details in [license file](./LICENSE).

## Contributions

We gladly accept contributions via GitHub pull requests. Please see
[CONTRIBUTING.md](../CONTRIBUTING.md) for more details.
4 changes: 2 additions & 2 deletions pulldown-cmark/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pulldown-cmark"
version = "0.10.2"
version = "0.10.3"
authors = [
"Raph Levien <raph.levien@gmail.com>",
"Marcus Klaas de Vries <mail@marcusklaas.nl>",
Expand Down Expand Up @@ -81,5 +81,5 @@ bincode = "1.3.1"
[features]
default = ["getopts", "html"]
gen-tests = []
simd = []
simd = ["pulldown-cmark-escape?/simd"]
html = ["pulldown-cmark-escape"]

0 comments on commit 1cfaf02

Please sign in to comment.