aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 10:40:01 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 10:40:01 +0200
commitec2d1bfb4232178fb3a6cba36f138bc6efbbf34a (patch)
tree2da4be3be22c2324c48cb17133b3f4b26b9139d2 /fuzz
parent861af95c119721e814460fa7dc32bd3d74b38484 (diff)
downloadmarkdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.gz
markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.bz2
markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.zip
Rename crate to `markdown`
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/Cargo.toml8
-rw-r--r--fuzz/fuzz_targets/micromark.rs12
2 files changed, 10 insertions, 10 deletions
diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml
index 3c19003..c8f9850 100644
--- a/fuzz/Cargo.toml
+++ b/fuzz/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "micromark-fuzz"
+name = "markdown-fuzz"
version = "0.0.0"
authors = ["Automatically generated"]
publish = false
@@ -11,7 +11,7 @@ cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.4"
-[dependencies.micromark]
+[dependencies.markdown]
path = ".."
# Prevent this from interfering with workspaces
@@ -19,7 +19,7 @@ path = ".."
members = ["."]
[[bin]]
-name = "micromark"
-path = "fuzz_targets/micromark.rs"
+name = "markdown"
+path = "fuzz_targets/markdown.rs"
test = false
doc = false
diff --git a/fuzz/fuzz_targets/micromark.rs b/fuzz/fuzz_targets/micromark.rs
index 2137e0e..c058637 100644
--- a/fuzz/fuzz_targets/micromark.rs
+++ b/fuzz/fuzz_targets/micromark.rs
@@ -1,15 +1,15 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
-extern crate micromark;
+extern crate markdown;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
- let _ = micromark::micromark(s);
- let _ = micromark::micromark_with_options(
+ let _ = markdown::to_html(s);
+ let _ = markdown::to_html_with_options(
s,
- &micromark::Options::gfm()
+ &markdown::Options::gfm()
);
- let _ = micromark::micromark_to_mdast(s, &micromark::ParseOptions::default());
- let _ = micromark::micromark_to_mdast(s, &micromark::ParseOptions::gfm());
+ let _ = markdown::to_mdast(s, &markdown::ParseOptions::default());
+ let _ = markdown::to_mdast(s, &markdown::ParseOptions::gfm());
}
});