Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format markdown files and rust code blocks in markdown files #5909

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
43 changes: 41 additions & 2 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ unicode-width = "0.1"
unicode-properties = { version = "0.1", default-features = false, features = ["general-category"] }

rustfmt-config_proc_macro = { version = "0.3", path = "config_proc_macro" }
markdown = { version = "0.1", path = "markdown" }

# Rustc dependencies are loaded from the sysroot, Cargo doesn't know about them.

Expand Down
5 changes: 5 additions & 0 deletions ci/build_and_test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ cargo test || exit /b 1
cd config_proc_macro || exit /b 1
cargo build --locked || exit /b 1
cargo test || exit /b 1

cd ../markdown || exit /b 1
:: Build markdown crate and generate tests
cargo build --locked -F gen-tests || exit /b 1
cargo test || exit /b 1
5 changes: 5 additions & 0 deletions ci/build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ cargo test
cd config_proc_macro
cargo build --locked
cargo test

cd ../markdown
# Build markdown crate and generate tests
cargo build --locked -F gen-tests
cargo test
1 change: 1 addition & 0 deletions markdown/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
158 changes: 158 additions & 0 deletions markdown/Cargo.lock

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

19 changes: 19 additions & 0 deletions markdown/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "markdown"
version = "0.1.0"
edition = "2021"
Comment on lines +2 to +4
Copy link
Contributor Author

@ytmimi ytmimi Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing I should add description, license, and repository fields. Anything else I should add?


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
itertools = "0.10"
pulldown-cmark = { version = "0.9.3", default-features = false }
unicode-width = "0.1"
unicode-segmentation = "1.9"

[features]
gen-tests = []

[build-dependencies]
serde = { version = "1.0.160", features = ["derive"] }
serde_json = "1.0"
Loading
Loading