13 releases

0.1.12 Feb 22, 2024
0.1.11 Dec 2, 2023
0.1.10 Sep 9, 2023
0.1.8 Jun 21, 2023
0.1.4 May 17, 2022

#302 in GUI

Download history 189/week @ 2024-01-25 228/week @ 2024-02-01 466/week @ 2024-02-08 828/week @ 2024-02-15 984/week @ 2024-02-22 1291/week @ 2024-02-29 1694/week @ 2024-03-07 2003/week @ 2024-03-14 1430/week @ 2024-03-21 988/week @ 2024-03-28 831/week @ 2024-04-04 1816/week @ 2024-04-11 749/week @ 2024-04-18 687/week @ 2024-04-25 741/week @ 2024-05-02 676/week @ 2024-05-09

3,033 downloads per month

MIT license

190KB
4K SLoC

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 license. See the LICENSE.md file for more info.

SVG icon files included in test-data/gresource/icons/ are available under the CC0 license and redistributed from Icon Development Kit. See the LICENSE.Icons.md and file for more info.

Dependencies

~4–13MB
~144K SLoC