Skip to content

Commit

Permalink
fix crate name
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed Mar 25, 2024
1 parent c27a660 commit 9d13fd3
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A fork of https://github.com/l1h3r/did_url
---

```rust
use did_url::DID;
use did_url_parser::DID;

let did = DID::parse("did:example:alice")?;

Expand Down
4 changes: 2 additions & 2 deletions benches/parse_did.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fn short(bench: &mut test::Bencher) {

bench.bytes = did.len() as u64;

bench.iter(|| test::black_box(did).parse::<did_url::DID>().unwrap());
bench.iter(|| test::black_box(did).parse::<did_url_parser::DID>().unwrap());
}

#[bench]
Expand All @@ -16,5 +16,5 @@ fn full(bench: &mut test::Bencher) {

bench.bytes = did.len() as u64;

bench.iter(|| test::black_box(did).parse::<did_url::DID>().unwrap());
bench.iter(|| test::black_box(did).parse::<did_url_parser::DID>().unwrap());
}
4 changes: 2 additions & 2 deletions examples/basic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use did_url::Result;
use did_url::DID;
use did_url_parser::Result;
use did_url_parser::DID;

fn main() -> Result<()> {
let did = DID::parse("did:example:alice")?;
Expand Down
6 changes: 3 additions & 3 deletions examples/parse.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use did_url::did;
use did_url::Result;
use did_url::DID;
use did_url_parser::did;
use did_url_parser::Result;
use did_url_parser::DID;

#[rustfmt::skip]
fn main() -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.3"

[dependencies.did_url]
[dependencies.did_url_parser]
path = ".."

# Prevent this from interfering with workspaces
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ use libfuzzer_sys::fuzz_target;

fuzz_target!(|data: &[u8]| {
if let Ok(string) = core::str::from_utf8(data) {
if let Ok(did) = did_url::DID::parse(string) {
if let Ok(did) = did_url_parser::DID::parse(string) {
assert_eq!(
did,
did_url::DID::parse(did.as_str()).unwrap()
did_url_parser::DID::parse(did.as_str()).unwrap()
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/did.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use did_url::*;
use did_url_parser::*;

#[test]
fn test_method() -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion tests/parse.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use did_url::DID;
use did_url_parser::DID;

#[test]
#[rustfmt::skip]
Expand Down
2 changes: 1 addition & 1 deletion tests/proptest.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use did_url::DID;
use did_url_parser::DID;
use proptest::prelude::*;
use proptest::string::string_regex;

Expand Down

0 comments on commit 9d13fd3

Please sign in to comment.