Skip to content

Commit cd1733f

Browse files
authored
Merge pull request #1016 from pkgw/pedia-features
New spx2html features for Tectonopedia
2 parents 8bf8da7 + 887e8e1 commit cd1733f

17 files changed

Lines changed: 4327 additions & 2606 deletions

File tree

Cargo.lock

Lines changed: 281 additions & 327 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
@@ -143,7 +143,7 @@ tectonic_cfg_support = "thiscommit:aeRoo7oa"
143143
tectonic_dep_support = "5faf4205bdd3d31101b749fc32857dd746f9e5bc"
144144
tectonic_docmodel = "a88a0418a9c3c559d023d9b1da9b03fce3a469e5"
145145
tectonic_engine_bibtex = "thiscommit:2021-01-17:KuhaeG1e"
146-
tectonic_engine_spx2html = "thiscommit:2022-03-02:IQWAncv"
146+
tectonic_engine_spx2html = "thiscommit:2022-11-22:vicemXu"
147147
tectonic_engine_xdvipdfmx = "8a003834b1f6d967d33cc07de4cc025af14560da"
148148
tectonic_engine_xetex = "c135e6a4a5a2e8c2dc4edcbcfd93f7d466ff8f88"
149149
tectonic_errors = "317ae79ceaa2593fb56090e37bf1f5cc24213dd9"

crates/bridge_core/src/lib.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
///

crates/dep_support/src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,16 @@ use std::{
1414
};
1515

1616
/// Supported depedency-finding backends.
17-
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
17+
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
1818
pub enum Backend {
1919
/// pkg-config
20+
#[default]
2021
PkgConfig,
2122

2223
/// vcpkg
2324
Vcpkg,
2425
}
2526

26-
impl Default for Backend {
27-
fn default() -> Self {
28-
Backend::PkgConfig
29-
}
30-
}
31-
3227
/// Dep-finding configuration.
3328
#[derive(Clone, Debug, Eq, PartialEq)]
3429
pub struct Configuration {

crates/engine_spx2html/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ byteorder = "^1.4"
2222
html-escape = "^0.2"
2323
percent-encoding = "^2.1"
2424
pinot = "^0.1.4"
25+
serde = { version = "^1.0", features = ["derive"] }
2526
tectonic_bridge_core = { path = "../bridge_core", version = "0.0.0-dev.0" }
2627
tectonic_errors = { path = "../errors", version = "0.0.0-dev.0" }
2728
tectonic_io_base = { path = "../io_base", version = "0.0.0-dev.0" }
2829
tectonic_status_base = { path = "../status_base", version = "0.0.0-dev.0" }
2930
tectonic_xdv = { path = "../xdv", version = "0.0.0-dev.0" }
3031
tempfile = "^3.1"
3132
tera = "^1.13"
33+
serde_json = "^1.0"
3234

3335
[package.metadata.internal_dep_versions]
3436
tectonic_bridge_core = "4e16bf963700aae59772a6fb223981ceaa9b5f57"

0 commit comments

Comments
 (0)