mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 00:34:25 +00:00
craft facade: the crates main added (elf, format, macho, mcp-server, pe, sniff, tar); render-parity is test support, outside the facade
This commit is contained in:
+35
-3
@@ -176,6 +176,13 @@ craft-tcraft = { workspace = true, optional = true }
|
||||
craft-texture = { workspace = true, optional = true }
|
||||
craft-usd = { workspace = true, optional = true }
|
||||
craft-xfl = { workspace = true, optional = true }
|
||||
craft-elf = { workspace = true, optional = true }
|
||||
craft-format = { workspace = true, optional = true }
|
||||
craft-macho = { workspace = true, optional = true }
|
||||
craft-mcp-server = { workspace = true, optional = true }
|
||||
craft-pe = { workspace = true, optional = true }
|
||||
craft-sniff = { workspace = true, optional = true }
|
||||
craft-tar = { workspace = true, optional = true }
|
||||
|
||||
[features]
|
||||
ui = [
|
||||
@@ -228,7 +235,6 @@ aep = ["dep:craft-aep"]
|
||||
affinity = ["dep:craft-affinity"]
|
||||
affinity-synth = ["affinity", "craft-affinity/synth"]
|
||||
|
||||
ai-agents = ["dep:craft-ai-agents"]
|
||||
ai-core = ["dep:craft-ai-core"]
|
||||
|
||||
anicraft-format = ["dep:craft-anicraft-format"]
|
||||
@@ -267,8 +273,7 @@ audio-symphonia = ["audio", "craft-audio/symphonia"]
|
||||
audio-vorbis-encode = ["audio", "craft-audio/vorbis-encode"]
|
||||
|
||||
automation = ["dep:craft-automation", "keymap"]
|
||||
# Agents in the open window: the launcher's switch, the connection file, the link host and the Agents page.
|
||||
automation-agents = ["automation", "craft-automation/agents", "ai-agents", "flags"]
|
||||
automation-agents = ["automation", "craft-automation/agents"]
|
||||
|
||||
ber = ["dep:craft-ber"]
|
||||
|
||||
@@ -323,6 +328,9 @@ dxf = ["dep:craft-dxf"]
|
||||
|
||||
ecproj-format = ["dep:craft-ecproj-format"]
|
||||
|
||||
elf = ["dep:craft-elf"]
|
||||
elf-serde = ["elf", "craft-elf/serde"]
|
||||
|
||||
eps = ["dep:craft-eps"]
|
||||
eps-paths = ["eps", "craft-eps/paths"]
|
||||
|
||||
@@ -377,6 +385,8 @@ font-store-bundled-index = ["font-store", "craft-font-store/bundled-index"]
|
||||
|
||||
font-subset = ["dep:craft-font-subset"] # native only: HarfBuzz's C++ builds with the target's C++ compiler
|
||||
|
||||
format = ["dep:craft-format"]
|
||||
|
||||
gainmap = ["dep:craft-gainmap"]
|
||||
|
||||
gcode = ["dep:craft-gcode"]
|
||||
@@ -412,6 +422,8 @@ image-codecs-avif-decode = ["image-codecs", "craft-image-codecs/avif-decode"]
|
||||
image-codecs-corpus = ["image-codecs", "craft-image-codecs/corpus"]
|
||||
image-codecs-heif = ["image-codecs", "craft-image-codecs/heif"]
|
||||
image-codecs-sgi = ["image-codecs", "craft-image-codecs/sgi"]
|
||||
image-codecs-sunraster = ["image-codecs", "craft-image-codecs/sunraster"]
|
||||
image-codecs-threads = ["image-codecs", "craft-image-codecs/threads"]
|
||||
|
||||
imaging = ["dep:craft-imaging", "color", "keymap"]
|
||||
|
||||
@@ -442,6 +454,9 @@ layers = ["dep:craft-layers"]
|
||||
|
||||
lottie = ["dep:craft-lottie"]
|
||||
|
||||
macho = ["dep:craft-macho"]
|
||||
macho-serde = ["macho", "craft-macho/serde"]
|
||||
|
||||
markdown = ["dep:craft-markdown"]
|
||||
|
||||
materialx = ["dep:craft-materialx"]
|
||||
@@ -452,6 +467,8 @@ mcmat = ["dep:craft-mcmat"]
|
||||
|
||||
mcp = ["dep:craft-mcp"]
|
||||
|
||||
mcp-server = ["dep:craft-mcp-server"]
|
||||
|
||||
media = ["dep:craft-media"]
|
||||
media-avi = ["media", "craft-media/avi"]
|
||||
media-bitstream = ["media", "craft-media/bitstream"]
|
||||
@@ -504,6 +521,7 @@ pcraft-bundle = ["dep:craft-pcraft-bundle"]
|
||||
pcraft-format = ["dep:craft-pcraft-format"]
|
||||
|
||||
pdf = ["dep:craft-pdf"]
|
||||
pdf-content = ["pdf", "craft-pdf/content"]
|
||||
pdf-cos = ["pdf", "craft-pdf/cos"]
|
||||
pdf-crypt = ["pdf", "craft-pdf/crypt"]
|
||||
pdf-filters = ["pdf", "craft-pdf/filters"]
|
||||
@@ -519,6 +537,9 @@ pdf-write-svg = ["pdf", "craft-pdf/write-svg"]
|
||||
|
||||
pdn = ["dep:craft-pdn"]
|
||||
|
||||
pe = ["dep:craft-pe"]
|
||||
pe-serde = ["pe", "craft-pe/serde"]
|
||||
|
||||
penpot = ["dep:craft-penpot"]
|
||||
|
||||
pkcs7 = ["dep:craft-pkcs7"]
|
||||
@@ -552,6 +573,7 @@ proto = ["dep:craft-proto"]
|
||||
|
||||
ps = ["dep:craft-ps"]
|
||||
ps-read = ["ps", "craft-ps/read"]
|
||||
ps-write = ["ps", "craft-ps/write"]
|
||||
|
||||
psd = ["dep:craft-psd"]
|
||||
psd-corpus = ["psd", "craft-psd/corpus"]
|
||||
@@ -575,6 +597,8 @@ raw-erf = ["raw", "craft-raw/erf"]
|
||||
raw-hasselblad = ["raw", "craft-raw/hasselblad"]
|
||||
raw-jxl = ["raw", "craft-raw/jxl"]
|
||||
raw-kodak = ["raw", "craft-raw/kodak"]
|
||||
raw-line-dng = ["raw", "craft-raw/line-dng"]
|
||||
raw-line-dng-threads = ["raw", "craft-raw/line-dng-threads"]
|
||||
raw-mef = ["raw", "craft-raw/mef"]
|
||||
raw-mrw = ["raw", "craft-raw/mrw"]
|
||||
raw-nef = ["raw", "craft-raw/nef"]
|
||||
@@ -608,6 +632,8 @@ sketch = ["dep:craft-sketch"]
|
||||
|
||||
smime = ["dep:craft-smime"]
|
||||
|
||||
sniff = ["dep:craft-sniff"]
|
||||
|
||||
stencilcraft-document = ["dep:craft-stencilcraft-document"]
|
||||
|
||||
stencilcraft-format = ["dep:craft-stencilcraft-format"]
|
||||
@@ -616,6 +642,7 @@ stream-codecs = ["dep:craft-stream-codecs"]
|
||||
|
||||
svg = ["dep:craft-svg"]
|
||||
svg-draw = ["svg", "craft-svg/draw"]
|
||||
svg-paths = ["svg", "craft-svg/paths"]
|
||||
svg-tree = ["svg", "craft-svg/tree"]
|
||||
svg-tree-core = ["svg", "craft-svg/tree-core"]
|
||||
svg-tree-render = ["svg", "craft-svg/tree-render"]
|
||||
@@ -625,6 +652,9 @@ svg-tree-text = ["svg", "craft-svg/tree-text"]
|
||||
|
||||
table = ["dep:craft-table", "keymap"]
|
||||
|
||||
tar = ["dep:craft-tar"]
|
||||
tar-serde = ["tar", "craft-tar/serde"]
|
||||
|
||||
tcraft = ["dep:craft-tcraft"]
|
||||
|
||||
text = ["dep:craft-text", "keymap"]
|
||||
@@ -673,6 +703,7 @@ text-oriya = ["text", "craft-text/oriya"]
|
||||
text-panjabi = ["text", "craft-text/panjabi"]
|
||||
text-polish = ["text", "craft-text/polish"]
|
||||
text-portuguese = ["text", "craft-text/portuguese"]
|
||||
text-positioned = ["text", "craft-text/positioned"]
|
||||
text-russian = ["text", "craft-text/russian"]
|
||||
text-sanskrit = ["text", "craft-text/sanskrit"]
|
||||
text-segment = ["text", "craft-text/segment"]
|
||||
@@ -737,6 +768,7 @@ video-h264-encode = ["video", "craft-video/h264-encode"]
|
||||
video-hevc = ["video", "craft-video/hevc"]
|
||||
video-hevc-decode = ["video", "craft-video/hevc-decode"]
|
||||
video-hevc-encode = ["video", "craft-video/hevc-encode"]
|
||||
video-mjpeg = ["video", "craft-video/mjpeg"]
|
||||
video-mpeg2 = ["video", "craft-video/mpeg2"]
|
||||
video-mpeg2-decode = ["video", "craft-video/mpeg2-decode"]
|
||||
video-mpeg2-encode = ["video", "craft-video/mpeg2-encode"]
|
||||
|
||||
@@ -26,7 +26,7 @@ The `[features]` table in `Cargo.toml` is written by `tests/features.rs` from th
|
||||
|
||||
Reached through other crates, not named in the facade: the six library crates (`craft-ui-contract` to `craft-ui-shell`), `craft-ui-macros` and `craft-behavior` through `craft-ui`, and `craft-win32` through `craft-window`.
|
||||
|
||||
Not in the facade, because they are tools or test harnesses: `craft-ui-gallery`, `story-render`, `feature-root` (the features local builds resolve with), `craft-ui-bench`, `craft-ui-test-kit`, `craft-fonts-build` (a build-script helper), `craft-design-lint`, `craft-plate-test`, `craft-media-testkit`.
|
||||
Not in the facade, because they are tools or test harnesses: `craft-ui-gallery`, `story-render`, `feature-root` (the features local builds resolve with), `craft-ui-bench`, `craft-ui-test-kit`, `craft-fonts-build` (a build-script helper), `craft-design-lint`, `craft-plate-test`, `craft-media-testkit`, `craft-render-parity`.
|
||||
|
||||
## Family dependencies
|
||||
|
||||
|
||||
@@ -79,6 +79,8 @@ pub use craft_dwg as dwg;
|
||||
pub use craft_dxf as dxf;
|
||||
#[cfg(feature = "ecproj-format")]
|
||||
pub use craft_ecproj_format as ecproj_format;
|
||||
#[cfg(feature = "elf")]
|
||||
pub use craft_elf as elf;
|
||||
#[cfg(feature = "eps")]
|
||||
pub use craft_eps as eps;
|
||||
#[cfg(feature = "epub")]
|
||||
@@ -111,6 +113,8 @@ pub use craft_font_manager as font_manager;
|
||||
pub use craft_font_store as font_store;
|
||||
#[cfg(feature = "font-subset")]
|
||||
pub use craft_font_subset as font_subset;
|
||||
#[cfg(feature = "format")]
|
||||
pub use craft_format as format;
|
||||
#[cfg(feature = "gainmap")]
|
||||
pub use craft_gainmap as gainmap;
|
||||
#[cfg(feature = "gcode")]
|
||||
@@ -161,6 +165,8 @@ pub use craft_latex as latex;
|
||||
pub use craft_layers as layers;
|
||||
#[cfg(feature = "lottie")]
|
||||
pub use craft_lottie as lottie;
|
||||
#[cfg(feature = "macho")]
|
||||
pub use craft_macho as macho;
|
||||
#[cfg(feature = "markdown")]
|
||||
pub use craft_markdown as markdown;
|
||||
#[cfg(feature = "materialx")]
|
||||
@@ -171,6 +177,8 @@ pub use craft_math as math;
|
||||
pub use craft_mcmat as mcmat;
|
||||
#[cfg(feature = "mcp")]
|
||||
pub use craft_mcp as mcp;
|
||||
#[cfg(feature = "mcp-server")]
|
||||
pub use craft_mcp_server as mcp_server;
|
||||
#[cfg(feature = "media")]
|
||||
pub use craft_media as media;
|
||||
#[cfg(feature = "menu")]
|
||||
@@ -207,6 +215,8 @@ pub use craft_pcraft_format as pcraft_format;
|
||||
pub use craft_pdf as pdf;
|
||||
#[cfg(feature = "pdn")]
|
||||
pub use craft_pdn as pdn;
|
||||
#[cfg(feature = "pe")]
|
||||
pub use craft_pe as pe;
|
||||
#[cfg(feature = "penpot")]
|
||||
pub use craft_penpot as penpot;
|
||||
#[cfg(feature = "pkcs7")]
|
||||
@@ -261,6 +271,8 @@ pub use craft_silhouette_studio as silhouette_studio;
|
||||
pub use craft_sketch as sketch;
|
||||
#[cfg(feature = "smime")]
|
||||
pub use craft_smime as smime;
|
||||
#[cfg(feature = "sniff")]
|
||||
pub use craft_sniff as sniff;
|
||||
#[cfg(feature = "stencilcraft-document")]
|
||||
pub use craft_stencilcraft_document as stencilcraft_document;
|
||||
#[cfg(feature = "stencilcraft-format")]
|
||||
@@ -271,6 +283,8 @@ pub use craft_stream_codecs as stream_codecs;
|
||||
pub use craft_svg as svg;
|
||||
#[cfg(feature = "table")]
|
||||
pub use craft_table as table;
|
||||
#[cfg(feature = "tar")]
|
||||
pub use craft_tar as tar;
|
||||
#[cfg(feature = "tcraft")]
|
||||
pub use craft_tcraft as tcraft;
|
||||
#[cfg(feature = "text")]
|
||||
|
||||
@@ -11,6 +11,7 @@ pub const NOT_IN_FACADE: &[(&str, &str)] = &[
|
||||
("fonts-build", "a build-script helper; apps call it from build.rs"),
|
||||
("media-testkit", "test support: ffmpeg discovery and fixture locations for the media crates"),
|
||||
("plate-test", "a test harness: reference PDFs and PDF structure checks"),
|
||||
("render-parity", "test support: compares two renders of a photo against a stated tolerance"),
|
||||
("story-render", "a tool: renders a component's stories to PNG files offscreen"),
|
||||
("ui-bench", "a tool: the release-mode benchmark of the UI library"),
|
||||
("ui-gallery", "a tool: the story gallery application"),
|
||||
|
||||
Reference in New Issue
Block a user