File tree Expand file tree Collapse file tree 7 files changed +29
-9
lines changed Expand file tree Collapse file tree 7 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 1111 with :
1212 toolchain : stable
1313 components : rustfmt, clippy
14+ - run : cargo run --manifest-path generate/Cargo.toml
1415 - run : cargo fmt --check && cargo clippy --examples --tests --benches
1516 - run : cargo test
1617 coverage :
2021 - uses : actions-rs/toolchain@v1
2122 with :
2223 toolchain : stable
24+ - run : cargo run --manifest-path generate/Cargo.toml
2325 - run : cargo install cargo-tarpaulin && cargo tarpaulin --out Xml
2426 - uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ harness = false
2121log = " 0.4"
2222unicode-id = { version = " 0.3" , features = [" no_std" ] }
2323
24-
2524[dev-dependencies ]
2625env_logger = " 0.10"
2726criterion = " 0.4"
@@ -33,7 +32,5 @@ swc_core = { version = "0.43.30", features = [
3332 " common" ,
3433] }
3534
36- [build-dependencies ]
37- regex = " 1"
38- reqwest = " 0.11"
39- tokio = { version = " 1" , features = [" full" ] }
35+ [workspace ]
36+ members = [" generate" ]
Original file line number Diff line number Diff line change 1+ [package ]
2+ name = " markdown-generate"
3+ version = " 0.0.0"
4+ authors = [" Titus Wormer <tituswormer@gmail.com>" ]
5+ edition = " 2018"
6+ publish = false
7+
8+ [dependencies ]
9+ regex = " 1"
10+ reqwest = " 0.11"
11+ tokio = { version = " 1" , features = [" full" ] }
Original file line number Diff line number Diff line change 1+ // To regenerate, run the following from the repository root:
2+ //
3+ // ```sh
4+ // cargo run --manifest-path generate/Cargo.toml
5+ // ```
6+
17use regex:: Regex ;
28use std:: fs;
39
@@ -63,7 +69,7 @@ async fn commonmark() {
6369 let doc = format ! (
6470 "//! `CommonMark` test suite.
6571
66- // > 👉 **Important**: this module is generated by `build .rs`.
72+ // > 👉 **Important**: this module is generated by `generate/src/main .rs`.
6773// > It is generate from the latest CommonMark website.
6874
6975use markdown::{{to_html_with_options, CompileOptions, Options}};
@@ -130,7 +136,7 @@ async fn punctuation() {
130136
131137/// List of characters that are considered punctuation.
132138///
133- /// > 👉 **Important**: this module is generated by `build .rs`.
139+ /// > 👉 **Important**: this module is generated by `generate/src/main .rs`.
134140/// > It is generate from the latest Unicode data.
135141///
136142/// Rust does not contain an `is_punctuation` method on `char`, while it does
Original file line number Diff line number Diff line change @@ -241,6 +241,10 @@ Fuzz testing is used to check for things that might fall through coverage.
241241
242242The following bash scripts are useful when working on this project:
243243
244+ * generate code (latest CM tests and Unicode info):
245+ ``` sh
246+ cargo run --manifest-path generate/Cargo.toml
247+ ```
244248* run examples:
245249 ` ` ` sh
246250 RUST_BACKTRACE=1 RUST_LOG=debug cargo run --example lib
Original file line number Diff line number Diff line change 22
33/// List of characters that are considered punctuation.
44///
5- /// > 👉 **Important**: this module is generated by `build .rs`.
5+ /// > 👉 **Important**: this module is generated by `generate/src/main .rs`.
66/// > It is generate from the latest Unicode data.
77///
88/// Rust does not contain an `is_punctuation` method on `char`, while it does
Original file line number Diff line number Diff line change 11//! `CommonMark` test suite.
22
3- // > 👉 **Important**: this module is generated by `build .rs`.
3+ // > 👉 **Important**: this module is generated by `generate/src/main .rs`.
44// > It is generate from the latest CommonMark website.
55
66use markdown:: { to_html_with_options, CompileOptions , Options } ;
You can’t perform that action at this time.
0 commit comments