Crates.io | gvdb-macros |
lib.rs | gvdb-macros |
version | |
source | src |
created_at | 2022-04-21 13:26:04.976542+00 |
updated_at | 2025-01-03 02:22:45.550886+00 |
description | Convenience macros for gvdb |
homepage | |
repository | https://github.com/felinira/gvdb-rs |
max_upload_size | |
id | 571616 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
This crate offers convenience macros for gvdb.
The macros are include_gresource_from_xml!()
and include_gresource_from_dir!()
Compile a GResource XML file and include the bytes in the file.
use gvdb_macros::include_gresource_from_xml;
static GRESOURCE_BYTES: &[u8] = include_gresource_from_xml!("test-data/gresource/test3.gresource.xml");
Scan a directory and create a GResource file with all the contents of the directory.
use gvdb_macros::include_gresource_from_dir;
static GRESOURCE_BYTES: &[u8] = include_gresource_from_dir!("/gvdb/rs/test", "test-data/gresource/");
gvdb
and gvdb-macros
are available under the MIT OR Apache-2.0 license. See the LICENSES folder for the complete license text.
SVG icon files included in test-data/gresource/icons/
are available under the CC0-1.0 license and redistributed from Icon Development Kit. See CC0-1.0.txt and file for complete license text.