Skip to content

Commit 788a654

Browse files
author
cranko
committed
Release commit created with Cranko.
+++ cranko-release-info-v1 [[projects]] qnames = ["tectonic_xdv", "cargo"] version = "0.2.2" age = 0 [[projects]] qnames = ["tectonic_errors", "cargo"] version = "0.2.1" age = 0 [[projects]] qnames = ["tectonic_xetex_format", "cargo"] version = "0.3.1" age = 0 [[projects]] qnames = ["tectonic_status_base", "cargo"] version = "0.2.1" age = 0 [[projects]] qnames = ["tectonic_io_base", "cargo"] version = "0.4.2" age = 0 [[projects]] qnames = ["tectonic_geturl", "cargo"] version = "0.3.2" age = 0 [[projects]] qnames = ["tectonic_docmodel", "cargo"] version = "0.2.1" age = 0 [[projects]] qnames = ["tectonic_dep_support", "cargo"] version = "0.1.1" age = 0 [[projects]] qnames = ["tectonic_cfg_support", "cargo"] version = "0.1.4" age = 11 [[projects]] qnames = ["tectonic_bundles", "cargo"] version = "0.3.1" age = 0 [[projects]] qnames = ["tectonic_bridge_icu", "cargo"] version = "0.2.0" age = 32 [[projects]] qnames = ["tectonic_bridge_graphite2", "cargo"] version = "0.2.2" age = 0 [[projects]] qnames = ["tectonic_bridge_harfbuzz", "cargo"] version = "0.2.7" age = 2 [[projects]] qnames = ["tectonic_bridge_freetype2", "cargo"] version = "0.2.0" age = 32 [[projects]] qnames = ["tectonic_bridge_flate", "cargo"] version = "0.1.7" age = 0 [[projects]] qnames = ["tectonic_bridge_core", "cargo"] version = "0.3.2" age = 0 [[projects]] qnames = ["tectonic_xetex_layout", "cargo"] version = "0.2.2" age = 0 [[projects]] qnames = ["tectonic_pdf_io", "cargo"] version = "0.4.1" age = 0 [[projects]] qnames = ["tectonic_engine_xetex", "cargo"] version = "0.4.2" age = 0 [[projects]] qnames = ["tectonic_engine_xdvipdfmx", "cargo"] version = "0.4.1" age = 0 [[projects]] qnames = ["tectonic_engine_spx2html", "cargo"] version = "0.3.0" age = 0 [[projects]] qnames = ["tectonic_engine_bibtex", "cargo"] version = "0.1.5" age = 0 [[projects]] qnames = ["tectonic", "cargo"] version = "0.12.0" age = 1 +++
2 parents 4dd8c21 + 09d8637 commit 788a654

116 files changed

Lines changed: 6198 additions & 3984 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 1303 additions & 1258 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ flate2 = { version = "^1.0.19", default-features = false, features = ["zlib"] }
6363
fs2 = "^0.4"
6464
lazy_static = "^1.4"
6565
libc = "^0.2"
66-
md-5 = "^0.9"
67-
open = "1.4.0"
68-
quick-xml = "^0.22"
66+
md-5 = "^0.10"
67+
open = "^4.0"
68+
quick-xml = "^0.28"
6969
serde = { version = "^1.0", features = ["derive"], optional = true }
70-
sha2 = "^0.9"
70+
sha2 = "^0.10"
7171
structopt = "0.3"
7272
tectonic_bridge_core = { path = "crates/bridge_core", version =">=0.3.0,<1"}
7373
tectonic_bundles = { path = "crates/bundles", version =">=0.3.0,<1", default-features = false }
7474
tectonic_docmodel = { path = "crates/docmodel", version =">=0.2.0,<1", optional = true }
7575
tectonic_engine_bibtex = { path = "crates/engine_bibtex", version =">=0.1.0,<1"}
76-
tectonic_engine_spx2html = { path = "crates/engine_spx2html", version =">=0.1.1,<1"}
76+
tectonic_engine_spx2html = { path = "crates/engine_spx2html", version =">=0.3.0,<1"}
7777
tectonic_engine_xdvipdfmx = { path = "crates/engine_xdvipdfmx", version =">=0.3.0,<1"}
7878
tectonic_engine_xetex = { path = "crates/engine_xetex", version =">=0.4.0,<1"}
7979
tectonic_errors = { path = "crates/errors", version =">=0.1.0,<1"}
@@ -84,10 +84,13 @@ tectonic_xdv = { path = "crates/xdv", version =">=0.1.9,<1"}
8484
tectonic_xetex_layout = { path = "crates/xetex_layout", version =">=0.1.0,<1"}
8585
tempfile = "^3.1"
8686
termcolor = "^1.1"
87-
toml = { version = "^0.5", optional = true }
87+
tokio = "^1.0"
88+
toml = { version = "^0.7", optional = true }
8889
url = "^2.0"
89-
watchexec = "^1.15.3"
90-
zip = { version = "^0.5", default-features = false, features = ["deflate"] }
90+
watchexec = "^2.3.0"
91+
watchexec-filterer-globset = "1.2"
92+
watchexec-signals = "1.0"
93+
zip = { version = "^0.6", default-features = false, features = ["deflate"] }
9194

9295
[features]
9396
default = ["geturl-reqwest", "serialization"]
@@ -112,21 +115,24 @@ profile = []
112115

113116
[dev-dependencies]
114117
filetime = "^0.2"
115-
futures = "0.1"
116-
headers = "0.2"
117-
hyper = "0.12"
118+
futures = "0.3"
119+
headers = "0.3"
120+
hyper = { version = "0.14", features = ["server"] }
118121
tempfile = "^3.1"
119-
tokio = "0.1.22"
120122

121123
[package.metadata.vcpkg]
122124
git = "https://github.com/microsoft/vcpkg"
123-
rev = "1be5a98d090b1d2beeb63a48ba800fbf006e8aca"
125+
rev = "ea222747b888b8d63df56240b262db38b095c68f"
126+
overlay-triplets-path = "dist/vcpkg-triplets"
124127

128+
# If other targets start using custom triplets like x86_64-pc-windows-msvc,
129+
# add them to crates/dep_support/src/lib.rs:new_from_vcpkg() to give users
130+
# guidance if they might need to set $VCPKGRS_TRIPLET.
125131
[package.metadata.vcpkg.target]
126132
x86_64-apple-darwin = { install = ["freetype","harfbuzz[icu,graphite2]"] }
127133
aarch64-apple-darwin = { triplet = "arm64-osx", install = ["freetype","harfbuzz[icu,graphite2]"] }
128134
x86_64-unknown-linux-gnu = { install = ["fontconfig","freetype","harfbuzz[icu,graphite2]"] }
129-
x86_64-pc-windows-msvc = { triplet = "x64-windows-static", install = ["fontconfig","freetype","harfbuzz[icu,graphite2]"] }
135+
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-release", install = ["fontconfig","freetype","harfbuzz[icu,graphite2]"] }
130136

131137
[package.metadata.internal_dep_versions]
132138
tectonic_bridge_core = "526ff57d5dd9f80dff35a3a5dd856edc9f0f61aa"
@@ -139,7 +145,7 @@ tectonic_cfg_support = "thiscommit:aeRoo7oa"
139145
tectonic_dep_support = "5faf4205bdd3d31101b749fc32857dd746f9e5bc"
140146
tectonic_docmodel = "a88a0418a9c3c559d023d9b1da9b03fce3a469e5"
141147
tectonic_engine_bibtex = "thiscommit:2021-01-17:KuhaeG1e"
142-
tectonic_engine_spx2html = "thiscommit:2022-03-02:IQWAncv"
148+
tectonic_engine_spx2html = "thiscommit:2022-11-22:vicemXu"
143149
tectonic_engine_xdvipdfmx = "8a003834b1f6d967d33cc07de4cc025af14560da"
144150
tectonic_engine_xetex = "c135e6a4a5a2e8c2dc4edcbcfd93f7d466ff8f88"
145151
tectonic_errors = "317ae79ceaa2593fb56090e37bf1f5cc24213dd9"

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ fn main() {
99
// they want to spawn off executables.
1010

1111
let target = env::var("TARGET").unwrap();
12-
println!("cargo:rustc-env=TARGET={}", target);
12+
println!("cargo:rustc-env=TARGET={target}");
1313
}

crates/bridge_core/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# tectonic_bridge_core 0.3.2 (2023-05-18)
2+
3+
- Bump the `md-5` dep to the 0.10 series (#1038, @CraftSpider)
4+
- Tidy up recent Clippy warnings.
5+
6+
17
# tectonic_bridge_core 0.3.1 (2022-10-03)
28

39
- Remove C's `time_t` from internal FFI APIs to avoid portability issues. This

crates/bridge_core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[package]
77
name = "tectonic_bridge_core"
8-
version = "0.3.1"
8+
version = "0.3.2"
99
authors = ["Peter Williams <peter@newton.cx>"]
1010
description = """
1111
Exposing core backend APIs to the Tectonic C/C++ code.
@@ -22,7 +22,7 @@ links = "tectonic_bridge_core"
2222
flate2 = { version = "^1.0", default-features = false, features = ["zlib"] }
2323
lazy_static = "^1.4"
2424
libc = "^0.2"
25-
md-5 = "^0.9"
25+
md-5 = "^0.10"
2626
tectonic_errors = { path = "../errors", version =">=0.2.0,<1"}
2727
tectonic_io_base = { path = "../io_base", version =">=0.3.0,<1"}
2828
tectonic_status_base = { path = "../status_base", version =">=0.1.0,<1"}

crates/bridge_core/src/lib.rs

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016-2021 the Tectonic Project
1+
// Copyright 2016-2022 the Tectonic Project
22
// Licensed under the MIT License.
33

44
#![deny(missing_docs)]
@@ -349,7 +349,7 @@ impl<'a> CoreBridgeState<'a> {
349349
// `lipsum.ltd.tex` under the name `lipsum.ltd`.
350350

351351
for e in format.extensions() {
352-
let ext = format!("{}.{}", name, e);
352+
let ext = format!("{name}.{e}");
353353

354354
if let FileFormat::Format = format {
355355
match io.input_open_format(&ext, self.status) {
@@ -714,11 +714,12 @@ pub struct SecuritySettings {
714714

715715
/// Different high-level security stances that can be adopted when creating
716716
/// [`SecuritySettings`].
717-
#[derive(Clone, Debug)]
717+
#[derive(Clone, Debug, Default)]
718718
pub enum SecurityStance {
719719
/// Ensure that all known-insecure features are disabled.
720720
///
721721
/// Use this stance if you are processing untrusted input.
722+
#[default]
722723
DisableInsecures,
723724

724725
/// Request to allow the use of known-insecure features.
@@ -730,13 +731,6 @@ pub enum SecurityStance {
730731
MaybeAllowInsecures,
731732
}
732733

733-
impl Default for SecurityStance {
734-
fn default() -> Self {
735-
// Obvi, the default is secure!!!
736-
SecurityStance::DisableInsecures
737-
}
738-
}
739-
740734
impl SecuritySettings {
741735
/// Create a new security configuration.
742736
///
@@ -817,11 +811,7 @@ pub unsafe extern "C" fn ttbc_get_file_md5(
817811
let rpath = CStr::from_ptr(path).to_string_lossy();
818812
let rdest = slice::from_raw_parts_mut(digest, 16);
819813

820-
if es.get_file_md5(rpath.as_ref(), rdest) {
821-
1
822-
} else {
823-
0
824-
}
814+
libc::c_int::from(es.get_file_md5(rpath.as_ref(), rdest))
825815
}
826816

827817
/// Calculate the MD5 digest of a block of binary data.
@@ -917,11 +907,7 @@ pub extern "C" fn ttbc_output_flush(
917907
es: &mut CoreBridgeState,
918908
handle: *mut OutputHandle,
919909
) -> libc::c_int {
920-
if es.output_flush(handle) {
921-
1
922-
} else {
923-
0
924-
}
910+
libc::c_int::from(es.output_flush(handle))
925911
}
926912

927913
/// Close a Tectonic output file.
@@ -934,11 +920,7 @@ pub extern "C" fn ttbc_output_close(
934920
return 0; // This is/was the behavior of close_file() in C.
935921
}
936922

937-
if es.output_close(handle) {
938-
1
939-
} else {
940-
0
941-
}
923+
libc::c_int::from(es.output_close(handle))
942924
}
943925

944926
/// Open a Tectonic file for input.
@@ -1137,11 +1119,7 @@ pub extern "C" fn ttbc_input_close(
11371119
return 0; // This is/was the behavior of close_file() in C.
11381120
}
11391121

1140-
if es.input_close(handle) {
1141-
1
1142-
} else {
1143-
0
1144-
}
1122+
libc::c_int::from(es.input_close(handle))
11451123
}
11461124

11471125
/// A buffer for diagnostic messages. Rust code does not need to use this type.
@@ -1214,11 +1192,7 @@ pub unsafe extern "C" fn ttbc_shell_escape(
12141192
}
12151193
};
12161194

1217-
if es.shell_escape(&rcmd) {
1218-
1
1219-
} else {
1220-
0
1221-
}
1195+
libc::c_int::from(es.shell_escape(&rcmd))
12221196
}
12231197

12241198
/// Different types of files that can be opened by TeX engines

crates/bridge_flate/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# tectonic_bridge_flate 0.1.7 (2023-05-18)
2+
3+
- Tidy up recent Clippy warnings.
4+
5+
16
# tectonic_bridge_flate 0.1.6 (2022-10-03)
27

38
No code changes, but some internal documentation improvements about managing FFI

crates/bridge_flate/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[package]
77
name = "tectonic_bridge_flate"
8-
version = "0.1.6"
8+
version = "0.1.7"
99
authors = ["Peter Williams <peter@newton.cx>"]
1010
description = """
1111
Exposing flate compression to the Tectonic C code.

crates/bridge_flate/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub unsafe extern "C" fn tectonic_flate_compress(
7272
(c.total_out(), FlateResult::Success)
7373
};
7474

75-
*output_len = size as u64;
75+
*output_len = size;
7676
result
7777
}
7878

@@ -101,7 +101,7 @@ pub unsafe extern "C" fn tectonic_flate_decompress(
101101
Err(_) => (0, FlateResult::OtherError),
102102
};
103103

104-
*output_len = size as u64;
104+
*output_len = size;
105105
result
106106
}
107107

crates/bridge_graphite2/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# tectonic_bridge_graphite2 0.2.2 (2023-05-18)
2+
3+
- Tidy up recent Clippy warnings.
4+
5+
16
# tectonic_bridge_graphite2 0.2.1 (2021-10-11)
27

38
- Fix the build script for Rust >=1.55 (#820, @pkgw)

0 commit comments

Comments
 (0)