Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 0ba6ed5

Browse files
committed
34: replace url crate with peg parser based on RFC 3986
- adding path + query + fragment - test coveragee - parses query as a vec of string tuple general cleanup, make DidUrl immutable by removing setter fix rustdoc
1 parent a30b4da commit 0ba6ed5

File tree

8 files changed

+892
-427
lines changed

8 files changed

+892
-427
lines changed

.vscode/launch.json

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "lldb",
9+
"request": "launch",
10+
"name": "Debug unit tests in library 'didethresolver'",
11+
"cargo": {
12+
"args": [
13+
"test",
14+
"--no-run",
15+
"--lib",
16+
],
17+
"filter": {
18+
"name": "lib-didethresolver",
19+
"kind": "lib"
20+
}
21+
},
22+
"args": [],
23+
"cwd": "${workspaceFolder}"
24+
},
25+
{
26+
"type": "lldb",
27+
"request": "launch",
28+
"name": "Debug executable 'resolver'",
29+
"cargo": {
30+
"args": [
31+
"build",
32+
"--bin=resolver",
33+
"--package=resolver"
34+
],
35+
"filter": {
36+
"name": "resolver",
37+
"kind": "bin"
38+
}
39+
},
40+
"args": [],
41+
"cwd": "${workspaceFolder}"
42+
},
43+
]
44+
}

lib/src/error.rs

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ pub enum ResolverError<M: Middleware> {
2323
pub enum DidError {
2424
#[error("Parsing of ethr:did failed, {0}")]
2525
Parse(#[from] peg::error::ParseError<peg::str::LineCol>),
26-
#[error(transparent)]
27-
Url(#[from] url::ParseError),
2826
}
2927

3028
/// Errors originating during the construction of a ethr:did document [`EthrBuilder`](crate::types::EthrBuilder)

0 commit comments

Comments
 (0)