Skip to content

Commit cf07a98

Browse files
author
bors-servo
authored
Auto merge of #396 - servo:phf, r=SimonSapin
Update string_cache and phf
2 parents c83f58a + e1e4be0 commit cf07a98

File tree

7 files changed

+19
-45
lines changed

7 files changed

+19
-45
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
branches:
22
except:
3-
- servo
4-
3+
- servo
54
language: rust
65
rust:
7-
- nightly
8-
- beta
9-
- stable
6+
- nightly
7+
- beta
8+
- stable
9+
- 1.36.0
1010
script: scripts/travis-build.sh

STRUCTURE.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

html5ever/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "html5ever"
4-
version = "0.24.1"
4+
version = "0.25.0"
55
authors = [ "The html5ever Project Developers" ]
66
license = "MIT / Apache-2.0"
77
repository = "https://github.com/servo/html5ever"
@@ -30,7 +30,7 @@ name = "serializer"
3030
[dependencies]
3131
log = "0.4"
3232
mac = "0.1"
33-
markup5ever = { version = "0.9", path = "../markup5ever" }
33+
markup5ever = { version = "0.10", path = "../markup5ever" }
3434

3535
[dev-dependencies]
3636
serde_json = "1.0"

markup5ever/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "markup5ever"
3-
version = "0.9.0"
3+
version = "0.10.0"
44
authors = [ "The html5ever Project Developers" ]
55
license = "MIT / Apache-2.0"
66
repository = "https://github.com/servo/html5ever"
@@ -14,14 +14,14 @@ edition = "2018"
1414
path = "lib.rs"
1515

1616
[dependencies]
17-
string_cache = "0.7"
18-
phf = "0.7"
17+
string_cache = "0.8"
18+
phf = "0.8"
1919
tendril = "0.4"
2020
log = "0.4"
2121

2222
[build-dependencies]
23-
string_cache_codegen = "0.4"
24-
phf_codegen = "0.7.3"
23+
string_cache_codegen = "0.5.1"
24+
phf_codegen = "0.8"
2525
serde = "1.0"
2626
serde_derive = "1.0"
2727
serde_json = "1.0"

markup5ever/build.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,10 @@ fn named_entities_to_phf(from: &Path, to: &Path) {
142142
"#
143143
)
144144
.unwrap();
145-
write!(
145+
writeln!(
146146
&mut file,
147-
"pub static NAMED_ENTITIES: Map<&'static str, (u32, u32)> = "
147+
"pub static NAMED_ENTITIES: Map<&'static str, (u32, u32)> = {};",
148+
phf_map.build(),
148149
)
149150
.unwrap();
150-
phf_map.build(&mut file).unwrap();
151-
write!(&mut file, ";\n").unwrap();
152151
}

scripts/travis-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ set -ex
1313
if [ $TRAVIS_RUST_VERSION = nightly ]
1414
then
1515
cargo bench --all
16-
cargo test -p html5ever --features "rustc-test/capture"
17-
cargo test -p xml5ever --features "rustc-test/capture"
16+
(cd html5ever && cargo test --features "rustc-test/capture")
17+
(cd xml5ever && cargo test --features "rustc-test/capture")
1818
else
1919
cargo bench --all
2020
cargo test --all

xml5ever/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "xml5ever"
4-
version = "0.15.0"
4+
version = "0.16.0"
55
authors = ["The xml5ever project developers"]
66
license = "MIT / Apache-2.0"
77
repository = "https://github.com/servo/html5ever"
@@ -24,7 +24,7 @@ doctest = true
2424
time = "0.1"
2525
log = "0.4"
2626
mac = "0.1"
27-
markup5ever = {version = "0.9", path = "../markup5ever" }
27+
markup5ever = {version = "0.10", path = "../markup5ever" }
2828

2929
[dev-dependencies]
3030
serde_json = "1.0"

0 commit comments

Comments
 (0)