gvdb-macros

Crates.iogvdb-macros
lib.rsgvdb-macros
version0.1.13
sourcesrc
created_at2022-04-21 13:26:04.976542
updated_at2024-07-12 23:15:11.262312
descriptionConvenience macros for gvdb
homepage
repositoryhttps://github.com/felinira/gvdb-rs
max_upload_size
id571616
size34,125
Sophie Herold (sophie-h)

documentation

README

About this crate

This crate offers convenience macros for gvdb. The macros are include_gresource_from_xml!() and include_gresource_from_dir!()

Crates.io

Examples

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/");

License

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.

Commit count: 159

cargo fmt