Skip to content

Commit 9008b2f

Browse files
author
cranko
committed
Release request commit created with Cranko.
+++ cranko-rc-info-v1 [[projects]] qnames = ["tectonic_geturl", "cargo"] bump_spec = "minor bump" [[projects]] qnames = ["tectonic_docmodel", "cargo"] bump_spec = "micro bump" [[projects]] qnames = ["tectonic_bridge_graphite2", "cargo"] bump_spec = "micro bump" [[projects]] qnames = ["tectonic_bridge_core", "cargo"] bump_spec = "minor bump" [[projects]] qnames = ["tectonic_pdf_io", "cargo"] bump_spec = "micro bump" +++
2 parents 53d6ab6 + ca75000 commit 9008b2f

28 files changed

Lines changed: 936 additions & 1380 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 974 deletions
Large diffs are not rendered by default.

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ tokio = "0.1.22"
117117

118118
[package.metadata.vcpkg]
119119
git = "https://github.com/microsoft/vcpkg"
120-
rev = "5a10163c44526b5d42a67480ce7a692a36948761"
120+
rev = "997cd412fa4dff71bec6c99dea95f0b9a3c2c240"
121121

122122
[package.metadata.vcpkg.target]
123123
x86_64-apple-darwin = { install = ["freetype","harfbuzz[icu,graphite2]"] }

crates/bridge_core/CHANGELOG.md

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,44 @@
1-
# See elsewhere for changelog
1+
# rc: minor bump
22

3-
This project’s release notes are curated from the Git history of its main
4-
branch. You can find them by looking at [the version of this file on the
5-
`release` branch][branch] or the [GitHub release history][gh-releases].
3+
- Add `SecuritySettings::allow_extra_search_paths()` (#814, @ralismark).
64

7-
[branch]: https://github.com/tectonic-typesetting/tectonic/blob/release/crates/bridge_core/CHANGELOG.md
8-
[gh-releases]: https://github.com/tectonic-typesetting/tectonic/releases
5+
6+
# tectonic_bridge_core 0.2.2 (2021-06-17)
7+
8+
- Switch from running [cbindgen] at build time to having the developer run it
9+
manually. This really ought to fix the crate builds on docs.rs ([#788]), and
10+
should speed builds too.
11+
12+
[cbindgen]: https://github.com/eqrion/cbindgen
13+
[#788]: https://github.com/tectonic-typesetting/tectonic/issues/788
14+
15+
16+
# tectonic_bridge_core 0.2.1 (2021-06-17)
17+
18+
- Attempt to fix crate builds on docs.rs — see [#788]. This works around an
19+
issue in Tectonic’s usage of [cbindgen] by configuring Cargo to operate in
20+
offline mode when building on docs.rs, which builds crates with network access
21+
turned off.
22+
23+
[#788]: https://github.com/tectonic-typesetting/tectonic/issues/788
24+
[cbindgen]: https://github.com/eqrion/cbindgen
25+
26+
27+
# tectonic_bridge_core 0.2.0 (2021-06-15)
28+
29+
- Add a security infrastructure that gives a systematic way to control whether
30+
features that can be abused by untrusted inputs, like shell-escape, are
31+
enabled. The default is to disable all such features. Callers can request to
32+
allow their use, but we use a centralized approach that ensures that such
33+
requests will always be denied if the environment variable
34+
`$TECTONIC_UNTRUSTED_MODE` is set to a nonempty value (@pkgw, #787).
35+
- Add a C API allowing us to expose the filesystem paths for just-opened
36+
inputs. This is needed for correct SyncTeX support (@hullanson, @pkgw, #762).
37+
38+
39+
# tectonic_bridge_core 0.1.0 (2021-06-03)
40+
41+
This is the first release of the "core" bridge crate. It provides a baseline of
42+
APIs for C/C++ code to interact with an underlying "driver" implemented in Rust.
43+
Those APIs mainly revolve around basic I/O and diagnostics, although we do have
44+
a specialized "system request" to implement the TeX shell-escape feature.

crates/bridge_core/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,11 @@ impl SecuritySettings {
764764
pub fn allow_shell_escape(&self) -> bool {
765765
!self.disable_insecures
766766
}
767+
768+
/// Query whether we're allowed to specify extra paths to read files from.
769+
pub fn allow_extra_search_paths(&self) -> bool {
770+
!self.disable_insecures
771+
}
767772
}
768773

769774
impl Default for SecuritySettings {
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1-
# See elsewhere for changelog
1+
# rc: micro bump
22

3-
This project’s release notes are curated from the Git history of its main
4-
branch. You can find them by looking at [the version of this file on the
5-
`release` branch][branch] or the [GitHub release history][gh-releases].
3+
- Fix the build script for Rust >=1.55 (#820, @pkgw)
64

7-
[branch]: https://github.com/tectonic-typesetting/tectonic/blob/release/crates/bridge_graphite2/CHANGELOG.md
8-
[gh-releases]: https://github.com/tectonic-typesetting/tectonic/releases
5+
6+
# tectonic_bridge_graphite2 0.2.0 (2021-06-03)
7+
8+
- Fix up handling of how C/C++ header file paths are exported to dependent
9+
crates. This is a breaking change: we've moved from a single include directory
10+
to a list of them.
11+
- Some improvements to the documentation
12+
13+
# tectonic_bridge_graphite2 0.1.1 (2021-01-16)
14+
15+
- Export information about the `GRAPHITE2_STATIC` C preprocessor define that is
16+
sometimes needed.
17+
18+
# tectonic_bridge_graphite2 0.1.0 (2021-01-04)
19+
20+
A new crate to encapsulate the location and use of the `graphite2` library used
21+
by Tectonic.

crates/bridge_graphite2/build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ fn main() {
4545
// indicate it with a specialized variable.
4646

4747
let target = env::var("TARGET").unwrap();
48-
let rustflags = env::var("RUSTFLAGS").unwrap_or_default();
48+
49+
let rustflags = env::var("CARGO_ENCODED_RUSTFLAGS")
50+
.unwrap_or_else(|_| env::var("RUSTFLAGS").unwrap_or_default());
51+
4952
let define_static_flag = if target.contains("-msvc") && rustflags.contains("+crt-static") {
5053
"1"
5154
} else {

crates/bridge_harfbuzz/harfbuzz

Submodule harfbuzz updated 2910 files

crates/bundles/src/cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ impl<CB: CacheBackend> CachingBundle<CB> {
386386
let digest = if digest == "-" {
387387
continue;
388388
} else {
389-
match DigestData::from_str(&digest) {
389+
match DigestData::from_str(digest) {
390390
Ok(d) => d,
391391
Err(e) => {
392392
tt_warning!(status, "ignoring bad digest data \"{}\" for \"{}\" in \"{}\"",
@@ -480,7 +480,7 @@ impl<CB: CacheBackend> CachingBundle<CB> {
480480
// fresh pull.
481481
if let Some(info) = self.index.get(digest::DIGEST_NAME) {
482482
if let Ok(Some((backend, digest))) =
483-
CB::open_with_quick_check(&self.resolved_url, &info, status)
483+
CB::open_with_quick_check(&self.resolved_url, info, status)
484484
{
485485
if self.cached_digest == digest {
486486
// We managed to pull some data that match the digest. We

crates/bundles/src/itar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl CacheBackend for IndexedTarBackend {
112112
reader: DefaultBackend::default().open_range_reader(resolved_url),
113113
};
114114

115-
if let Ok(d) = cache_backend.get_file(digest::DIGEST_NAME, &digest_file_info, status) {
115+
if let Ok(d) = cache_backend.get_file(digest::DIGEST_NAME, digest_file_info, status) {
116116
if let Ok(d) = String::from_utf8(d) {
117117
if let Ok(d) = DigestData::from_str(&d) {
118118
return Ok(Some((cache_backend, d)));

0 commit comments

Comments
 (0)