1
0
Fork 0
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:
Ryan Dahl 2020-10-09 15:45:40 -04:00 committed by GitHub
parent f4357f0ff9
commit 2379a3b340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

2
Cargo.lock generated
View file

@ -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]]

View file

@ -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"

View file

@ -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;

View file

@ -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);