Dedupe ron and base64 (#30415)

This commit is contained in:
Fabrice Desré 2023-09-23 04:30:57 -07:00 committed by GitHub
parent 2c3f7c0156
commit 38c91b836a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 51 additions and 35 deletions

41
Cargo.lock generated
View file

@ -326,12 +326,6 @@ dependencies = [
"rustc-demangle",
]
[[package]]
name = "base64"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
[[package]]
name = "base64"
version = "0.21.4"
@ -1008,7 +1002,7 @@ version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "754c060c4a3342c5824d14caeba6c588716e9327f50558532685ef56718e0461"
dependencies = [
"base64 0.21.4",
"base64",
"bitflags 2.4.0",
"once_cell",
"percent-encoding",
@ -2611,7 +2605,7 @@ version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06683b93020a07e3dbcf5f8c0f6d40080d725bea7936fc01ad345c01b97dc270"
dependencies = [
"base64 0.21.4",
"base64",
"bytes",
"headers-core",
"http",
@ -3798,7 +3792,7 @@ version = "0.0.1"
dependencies = [
"async-recursion",
"async-tungstenite",
"base64 0.21.4",
"base64",
"brotli",
"bytes",
"content-security-policy",
@ -4711,24 +4705,13 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3582f63211428f83597b51b2ddb88e2a91a9d52d12831f9d08f5e624e8977422"
[[package]]
name = "ron"
version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "86018df177b1beef6c7c8ef949969c4f7cb9a9344181b92486b23c79995bdaa4"
dependencies = [
"base64 0.13.0",
"bitflags 1.3.2",
"serde",
]
[[package]]
name = "ron"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b91f7eff05f748767f183df4320a63d6936e9c6107d97c9e6bdd9784f4289c94"
dependencies = [
"base64 0.21.4",
"base64",
"bitflags 2.4.0",
"serde",
"serde_derive",
@ -4786,7 +4769,7 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d3987094b1d07b653b7dfdc3f70ce9a1da9c51ac18c1b06b662e4f9a0e9f4b2"
dependencies = [
"base64 0.21.4",
"base64",
]
[[package]]
@ -4851,7 +4834,7 @@ dependencies = [
"arrayvec",
"atomic_refcell",
"backtrace",
"base64 0.21.4",
"base64",
"bitflags 2.4.0",
"bluetooth_traits",
"canvas_traits",
@ -6731,11 +6714,11 @@ dependencies = [
[[package]]
name = "webdriver"
version = "0.48.0"
version = "0.49.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf9ae70f0cb12332fe144def990a9e62b20db2361b8784f879bb2814aad6c763"
checksum = "bc8773336cf1ad6ffadae7d73fea436e5c4d6345a467292902876cb0f7b72107"
dependencies = [
"base64 0.13.0",
"base64",
"bytes",
"cookie 0.16.2",
"http",
@ -6755,7 +6738,7 @@ dependencies = [
name = "webdriver_server"
version = "0.0.1"
dependencies = [
"base64 0.21.4",
"base64",
"compositing_traits",
"cookie 0.12.0",
"crossbeam-channel",
@ -6846,7 +6829,7 @@ dependencies = [
"objc",
"plane-split",
"rayon",
"ron 0.6.6",
"ron",
"serde",
"smallvec",
"svg_fmt",
@ -6953,7 +6936,7 @@ dependencies = [
"naga",
"parking_lot",
"profiling",
"ron 0.8.1",
"ron",
"rustc-hash",
"serde",
"smallvec",

View file

@ -85,7 +85,7 @@ unicode-bidi = "0.3.4"
unicode-script = "0.5"
url = "2.4"
uuid = { version = "1.4.1", features = ["v4"] }
webdriver = "0.48.0"
webdriver = "0.49.0"
webpki = "0.22"
webpki-roots = "0.23"
webrender = { git = "https://github.com/servo/webrender", features = ["capture"] }

View file

@ -81,6 +81,41 @@ impl BrowserCapabilities for ServoCapabilities {
) -> Result<bool, WebDriverError> {
todo!()
}
fn webauthn_virtual_authenticators(
&mut self,
_: &serde_json::Map<std::string::String, Value>,
) -> Result<bool, WebDriverError> {
todo!()
}
fn webauthn_extension_uvm(
&mut self,
_: &serde_json::Map<std::string::String, Value>,
) -> Result<bool, WebDriverError> {
todo!()
}
fn webauthn_extension_prf(
&mut self,
_: &serde_json::Map<std::string::String, Value>,
) -> Result<bool, WebDriverError> {
todo!()
}
fn webauthn_extension_large_blob(
&mut self,
_: &serde_json::Map<std::string::String, Value>,
) -> Result<bool, WebDriverError> {
todo!()
}
fn webauthn_extension_cred_blob(
&mut self,
_: &serde_json::Map<std::string::String, Value>,
) -> Result<bool, WebDriverError> {
todo!()
}
}
fn get_platform_name() -> Option<String> {

View file

@ -21,7 +21,6 @@ rand = [
# Ignored packages with duplicated versions
packages = [
"ahash",
"base64",
"bitflags",
"cfg-if",
"cookie",
@ -34,7 +33,6 @@ packages = [
"nix",
"num-rational",
"redox_syscall",
"ron",
"socket2",
"time",
"wasi",

View file

@ -41,7 +41,7 @@ num-traits = "0.2"
plane-split = "0.17"
png = { optional = true, version = "0.16" }
rayon = "1"
ron = { optional = true, version = "0.6.2" }
ron = { optional = true, version = "0.8" }
serde = { optional = true, version = "1.0", features = ["serde_derive"] }
smallvec = "1"
time = "0.1"

View file

@ -43,8 +43,8 @@ impl CaptureConfig {
resource_id: 0,
#[cfg(feature = "capture")]
pretty: ron::ser::PrettyConfig::new()
.with_enumerate_arrays(true)
.with_indentor(" ".to_string()),
.enumerate_arrays(true)
.indentor(" ".to_string()),
}
}