Skip to content

Commit 62fd940

Browse files
authored
Merge pull request #786 from pkgw/bundles-crate
Separate bundles into their own crate
2 parents 4fc1697 + 4550bc0 commit 62fd940

32 files changed

+1792
-806
lines changed

CARGO_README.md

+2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ sub-crates:
5757
- [`tectonic_bridge_graphite2`](https://crates.io/crates/tectonic_bridge_graphite2)
5858
- [`tectonic_bridge_harfbuzz`](https://crates.io/crates/tectonic_bridge_harfbuzz)
5959
- [`tectonic_bridge_icu`](https://crates.io/crates/tectonic_bridge_icu)
60+
- [`tectonic_bundles`](https://crates.io/crates/tectonic_bundles)
6061
- [`tectonic_cfg_support`](https://crates.io/crates/tectonic_cfg_support)
6162
- [`tectonic_dep_support`](https://crates.io/crates/tectonic_dep_support)
63+
- [`tectonic_docmodel`](https://crates.io/crates/tectonic_docmodel)
6264
- [`tectonic_engine_bibtex`](https://crates.io/crates/tectonic_engine_bibtex)
6365
- [`tectonic_engine_xdvipdfmx`](https://crates.io/crates/tectonic_engine_xdvipdfmx)
6466
- [`tectonic_engine_xetex`](https://crates.io/crates/tectonic_engine_xetex)

Cargo.lock

+15-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+7-5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ members = [
3232
"crates/bridge_graphite2",
3333
"crates/bridge_harfbuzz",
3434
"crates/bridge_icu",
35+
"crates/bundles",
3536
"crates/cfg_support",
3637
"crates/dep_support",
3738
"crates/docmodel",
@@ -52,7 +53,6 @@ name = "tectonic"
5253
crate-type = ["rlib"]
5354

5455
[dependencies]
55-
app_dirs = { version = "2", package = "app_dirs2" }
5656
atty = "0.2"
5757
byte-unit = "^4.0"
5858
cfg-if = "1.0"
@@ -67,6 +67,7 @@ serde = { version = "^1.0", features = ["derive"], optional = true }
6767
sha2 = "^0.9"
6868
structopt = "0.3"
6969
tectonic_bridge_core = { path = "crates/bridge_core", version = "0.0.0-dev.0" }
70+
tectonic_bundles = { path = "crates/bundles", version = "0.0.0-dev.0", default-features = false }
7071
tectonic_docmodel = { path = "crates/docmodel", version = "0.0.0-dev.0", optional = true }
7172
tectonic_engine_bibtex = { path = "crates/engine_bibtex", version = "0.0.0-dev.0" }
7273
tectonic_engine_xdvipdfmx = { path = "crates/engine_xdvipdfmx", version = "0.0.0-dev.0" }
@@ -97,10 +98,10 @@ serialization = ["serde", "tectonic_docmodel", "toml"]
9798

9899
external-harfbuzz = ["tectonic_engine_xetex/external-harfbuzz"]
99100

100-
geturl-curl = ["tectonic_geturl/curl"]
101-
geturl-reqwest = ["tectonic_geturl/reqwest"]
101+
geturl-curl = ["tectonic_bundles/geturl-curl", "tectonic_geturl/curl"]
102+
geturl-reqwest = ["tectonic_bundles/geturl-reqwest", "tectonic_geturl/reqwest"]
102103

103-
native-tls-vendored = ["tectonic_geturl/native-tls-vendored"]
104+
native-tls-vendored = ["tectonic_bundles/native-tls-vendored", "tectonic_geturl/native-tls-vendored"]
104105

105106
# developer feature to compile with the necessary flags for profiling tectonic.
106107
profile = []
@@ -129,6 +130,7 @@ tectonic_bridge_flate = "thiscommit:2021-01-01:eer4ahL4"
129130
tectonic_bridge_graphite2 = "2c1ffcd702a662c003bd3d7d0ca4d169784cb6ad"
130131
tectonic_bridge_harfbuzz = "2c1ffcd702a662c003bd3d7d0ca4d169784cb6ad"
131132
tectonic_bridge_icu = "2c1ffcd702a662c003bd3d7d0ca4d169784cb6ad"
133+
tectonic_bundles = "thiscommit:2021-06-13:Q0esYor"
132134
tectonic_cfg_support = "thiscommit:aeRoo7oa"
133135
tectonic_dep_support = "5faf4205bdd3d31101b749fc32857dd746f9e5bc"
134136
tectonic_docmodel = "cd77b60d48b1ae3ef80d708e6858ea91cd9fa812"
@@ -137,7 +139,7 @@ tectonic_engine_xdvipdfmx = "7dcbc52e58f9774b3d592919a9105377faeac509"
137139
tectonic_engine_xetex = "b7a4085fa67c831d4532da6661bddafd1f9c24ff"
138140
tectonic_errors = "317ae79ceaa2593fb56090e37bf1f5cc24213dd9"
139141
tectonic_geturl = "thiscommit:2021-01-16:Aikoob9c"
140-
tectonic_io_base = "f7eeff461778f7082db7ed5097d93aa63119eb12"
142+
tectonic_io_base = "thiscommit:2021-06-13:XFjtSsZ"
141143
tectonic_status_base = "317ae79ceaa2593fb56090e37bf1f5cc24213dd9"
142144
tectonic_xdv = "c91f2ef37858d1a0a724a5c3ddc2f7ea46373c77"
143145
tectonic_xetex_layout = "2c1ffcd702a662c003bd3d7d0ca4d169784cb6ad"

crates/bundles/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See elsewhere for changelog
2+
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].
6+
7+
[branch]: https://github.com/tectonic-typesetting/tectonic/blob/release/crates/bundles/CHANGELOG.md
8+
[gh-releases]: https://github.com/tectonic-typesetting/tectonic/releases

crates/bundles/Cargo.toml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright 2020-2021 the Tectonic Project
2+
# Licensed under the MIT License.
3+
4+
# See README.md for discussion of features (or lack thereof) in this crate.
5+
6+
[package]
7+
name = "tectonic_bundles"
8+
version = "0.0.0-dev.0" # assigned with cranko (see README)
9+
authors = ["Peter Williams <[email protected]>"]
10+
description = """
11+
Tectonic "bundle" (support file collection) implementations.
12+
"""
13+
homepage = "https://tectonic-typesetting.github.io/"
14+
documentation = "https://docs.rs/tectonic_bundles"
15+
repository = "https://github.com/tectonic-typesetting/tectonic/"
16+
readme = "README.md"
17+
license = "MIT"
18+
edition = "2018"
19+
20+
[dependencies]
21+
flate2 = { version = "^1.0.19", default-features = false, features = ["zlib"] }
22+
fs2 = "^0.4"
23+
tectonic_errors = { path = "../errors", version = "0.0.0-dev.0" }
24+
tectonic_geturl = { path = "../geturl", version = "0.0.0-dev.0", default-features = false }
25+
tectonic_io_base = { path = "../io_base", version = "0.0.0-dev.0" }
26+
tectonic_status_base = { path = "../status_base", version = "0.0.0-dev.0" }
27+
zip = { version = "^0.5", default-features = false, features = ["deflate"] }
28+
29+
[features]
30+
default = ["geturl-reqwest"]
31+
geturl-curl = ["tectonic_geturl/curl"]
32+
geturl-reqwest = ["tectonic_geturl/reqwest"]
33+
native-tls-vendored = ["tectonic_geturl/native-tls-vendored"]
34+
35+
[package.metadata.internal_dep_versions]
36+
tectonic_errors = "5c9ba661edf5ef669f24f9904f99cca369d999e7"
37+
tectonic_geturl = "c828bee7361ebd30e28392507a1406d27dc8fdbb"
38+
tectonic_io_base = "thiscommit:2021-06-13:s9130zU"
39+
tectonic_status_base = "317ae79ceaa2593fb56090e37bf1f5cc24213dd9"

crates/bundles/README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# The `tectonic_bundles` crate
2+
3+
[![](http://meritbadge.herokuapp.com/tectonic_bundles)](https://crates.io/crates/tectonic_bundles)
4+
5+
This crate is part of [the Tectonic
6+
project](https://tectonic-typesetting.github.io/en-US/). It implements various
7+
Tectonic “bundles” that provide access to collections of TeX support files.
8+
9+
- [API documentation](https://docs.rs/tectonic_bundles/).
10+
- [Main Git repository](https://github.com/tectonic-typesetting/tectonic/).
11+
12+
13+
## Cargo features
14+
15+
This crate provides the following [Cargo features][features]:
16+
17+
[features]: https://doc.rust-lang.org/cargo/reference/features.html
18+
19+
- `geturl-curl`: use the [curl] crate to implement HTTP requests. In order for
20+
this to take effect, you must use `--no-default-features` because
21+
`geturl-reqwest` is a default feature and it takes precedence
22+
- `geturl-reqwest`: use the [reqwest] crate to implement HTTP requests (enabled
23+
by default)
24+
- `native-tls-vendored`: if using [reqwest], activate the `vendored` option in
25+
the [native-tls] crate, causing OpenSSL to be vendored
26+
27+
[curl]: https://docs.rs/curl/
28+
[reqwest]: https://docs.rs/reqwest/
29+
[native-tls]: https://github.com/sfackler/rust-native-tls

0 commit comments

Comments
 (0)