From ba552f732e9fff46198848ca629d987977185c76 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Tue, 16 Jul 2024 05:29:39 +0800 Subject: [PATCH] fix: warnings and feature macros --- core/src/vector/mod.rs | 1 + crates/reflexo/src/vector/ir/module.rs | 1 + exporter/svg/Cargo.toml | 4 ++-- scripts/publish.py | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/src/vector/mod.rs b/core/src/vector/mod.rs index 30497e4b..cb3d0fd5 100644 --- a/core/src/vector/mod.rs +++ b/core/src/vector/mod.rs @@ -1,4 +1,5 @@ pub mod convert; +#[cfg(feature = "flat-vector")] pub mod incr; pub mod ir; pub mod pass; diff --git a/crates/reflexo/src/vector/ir/module.rs b/crates/reflexo/src/vector/ir/module.rs index 2b890ce6..f3445b6e 100644 --- a/crates/reflexo/src/vector/ir/module.rs +++ b/crates/reflexo/src/vector/ir/module.rs @@ -290,6 +290,7 @@ pub struct FlatModule { pub metadata: Vec, #[cfg_attr(feature = "rkyv", with(rkyv::with::Skip))] + #[allow(unused)] meta_indices: [once_cell::sync::OnceCell; META_INDICES_MAX], } diff --git a/exporter/svg/Cargo.toml b/exporter/svg/Cargo.toml index 50d8482a..7f48e5a0 100644 --- a/exporter/svg/Cargo.toml +++ b/exporter/svg/Cargo.toml @@ -17,8 +17,8 @@ comemo.workspace = true tiny-skia.workspace = true base64.workspace = true -typst-ts-core.workspace = true -reflexo = { workspace = true, features = ["flat-vector"] } +typst-ts-core = { workspace = true, features = ["flat-vector"] } +reflexo.workspace = true reflexo-vec2canvas = { workspace = true, optional = true } log.workspace = true siphasher.workspace = true diff --git a/scripts/publish.py b/scripts/publish.py index d7dd0ad1..b882ac7d 100644 --- a/scripts/publish.py +++ b/scripts/publish.py @@ -1,8 +1,9 @@ import subprocess +import sys -pub = ["cargo", "publish", "-p"] +pub = ["cargo", "publish", *sys.argv[1:], "-p"] feats = ["--features", "no-content-hint"] subprocess.run([*pub, "reflexo"]) subprocess.run([*pub, "reflexo-vfs"])