mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 12:58:54 -05:00
Implement Serialize for ModuleSpecifier (#7900)
Also re-export serde from deno_core, since its now a dependency.
This commit is contained in:
parent
f4357f0ff9
commit
2379a3b340
4 changed files with 7 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -459,6 +459,7 @@ dependencies = [
|
|||
"libc",
|
||||
"log",
|
||||
"rusty_v8",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"smallvec",
|
||||
"tokio",
|
||||
|
@ -2819,6 +2820,7 @@ dependencies = [
|
|||
"idna",
|
||||
"matches",
|
||||
"percent-encoding",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
@ -20,9 +20,10 @@ lazy_static = "1.4.0"
|
|||
libc = "0.2.77"
|
||||
log = "0.4.11"
|
||||
rusty_v8 = "0.11.0"
|
||||
serde_json = { version = "1.0.57", features = ["preserve_order"] }
|
||||
serde_json = { version = "1.0", features = ["preserve_order"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
smallvec = "1.4.2"
|
||||
url = "2.1.1"
|
||||
url = { version = "2.1.1", features = ["serde"] }
|
||||
|
||||
[[example]]
|
||||
name = "http_bench_bin_ops"
|
||||
|
|
|
@ -22,6 +22,7 @@ mod zero_copy_buf;
|
|||
// Re-exports
|
||||
pub use futures;
|
||||
pub use rusty_v8 as v8;
|
||||
pub use serde;
|
||||
pub use serde_json;
|
||||
pub use url;
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ impl fmt::Display for ModuleResolutionError {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Eq, Hash, PartialEq)]
|
||||
#[derive(Debug, Clone, Eq, Hash, PartialEq, serde::Serialize)]
|
||||
/// Resolved module specifier
|
||||
pub struct ModuleSpecifier(Url);
|
||||
|
||||
|
|
Loading…
Reference in a new issue