Răsfoiți Sursa

url: move crate into a directory

Dirkjan Ochtman 6 ani în urmă
părinte
comite
cf89eab9b5

+ 1 - 47
Cargo.toml

@@ -1,48 +1,2 @@
-[package]
-
-name = "url"
-# When updating version, also modify html_root_url in the lib.rs
-version = "2.1.1"
-authors = ["The rust-url developers"]
-
-description = "URL library for Rust, based on the WHATWG URL Standard"
-documentation = "https://docs.rs/url"
-repository = "https://github.com/servo/rust-url"
-readme = "README.md"
-keywords = ["url", "parser"]
-categories = ["parser-implementations", "web-programming", "encoding"]
-license = "MIT/Apache-2.0"
-
-[badges]
-travis-ci = { repository = "servo/rust-url" }
-appveyor = { repository = "Manishearth/rust-url" }
-
 [workspace]
-members = [".", "form_urlencoded", "idna", "percent_encoding", "data-url"]
-
-[[test]]
-name = "unit"
-
-[[test]]
-name = "data"
-harness = false
-
-[lib]
-test = false
-
-[dev-dependencies]
-rustc-test = "0.3"
-serde_json = "1.0"
-
-bencher = "0.1"
-
-[dependencies]
-form_urlencoded = { version = "1.0.0", path = "./form_urlencoded" }
-idna = { version = "0.2.0", path = "./idna" }
-matches = "0.1"
-percent-encoding = { version = "2.1.0", path = "./percent_encoding" }
-serde = {version = "1.0", optional = true, features = ["derive"]}
-
-[[bench]]
-name = "parse_url"
-harness = false
+members = ["url", "form_urlencoded", "idna", "percent_encoding", "data-url"]

+ 45 - 0
url/Cargo.toml

@@ -0,0 +1,45 @@
+[package]
+
+name = "url"
+# When updating version, also modify html_root_url in the lib.rs
+version = "2.1.1"
+authors = ["The rust-url developers"]
+
+description = "URL library for Rust, based on the WHATWG URL Standard"
+documentation = "https://docs.rs/url"
+repository = "https://github.com/servo/rust-url"
+readme = "README.md"
+keywords = ["url", "parser"]
+categories = ["parser-implementations", "web-programming", "encoding"]
+license = "MIT/Apache-2.0"
+
+[badges]
+travis-ci = { repository = "servo/rust-url" }
+appveyor = { repository = "Manishearth/rust-url" }
+
+[[test]]
+name = "unit"
+
+[[test]]
+name = "data"
+harness = false
+
+[lib]
+test = false
+
+[dev-dependencies]
+rustc-test = "0.3"
+serde_json = "1.0"
+
+bencher = "0.1"
+
+[dependencies]
+form_urlencoded = { version = "1.0.0", path = "../form_urlencoded" }
+idna = { version = "0.2.0", path = "../idna" }
+matches = "0.1"
+percent-encoding = { version = "2.1.0", path = "../percent_encoding" }
+serde = {version = "1.0", optional = true, features = ["derive"]}
+
+[[bench]]
+name = "parse_url"
+harness = false

+ 1 - 0
url/LICENSE-APACHE

@@ -0,0 +1 @@
+../LICENSE-APACHE

+ 1 - 0
url/LICENSE-MIT

@@ -0,0 +1 @@
+../LICENSE-MIT

+ 0 - 0
benches/parse_url.rs → url/benches/parse_url.rs


+ 0 - 0
fuzz/.gitignore → url/fuzz/.gitignore


+ 0 - 0
fuzz/Cargo.toml → url/fuzz/Cargo.toml


+ 0 - 0
fuzz/fuzz_targets/parse.rs → url/fuzz/fuzz_targets/parse.rs


+ 0 - 0
src/host.rs → url/src/host.rs


+ 0 - 0
src/lib.rs → url/src/lib.rs


+ 0 - 0
src/origin.rs → url/src/origin.rs


+ 0 - 0
src/parser.rs → url/src/parser.rs


+ 0 - 0
src/path_segments.rs → url/src/path_segments.rs


+ 0 - 0
src/quirks.rs → url/src/quirks.rs


+ 0 - 0
src/slicing.rs → url/src/slicing.rs


+ 0 - 0
tests/data.rs → url/tests/data.rs


+ 0 - 0
tests/setters_tests.json → url/tests/setters_tests.json


+ 0 - 0
tests/unit.rs → url/tests/unit.rs


+ 0 - 0
tests/urltestdata.json → url/tests/urltestdata.json