Git · dadoum.zone
Repositories
Help
Report an Issue
apple-crates
Code
Commits
Branches
Tags
Search
Tree:
a74924e
Branches
Tags
main
apple-crates
plist-macros
src
lib.rs
Refactor and unify a lot of things for another project and implement airdrop support
Dadoum
commited
a74924e
at 2026-10-25 22:15:58
lib.rs
Blame
History
Raw
// The macros reach plist through this crate, so callers don't need to import it. #[doc(hidden)] pub use plist; #[macro_export] macro_rules! dict { { $($key:literal : $value:expr),* $(,)? } => {{ let mut dict = $crate::plist::Dictionary::new(); $( dict.insert( $key.to_string(), $crate::plist::Value::from($value), ); )* dict }}; } #[macro_export] macro_rules! array { [ $($value:expr),* $(,)? ] => {{ vec![ $($crate::plist::Value::from($value),)* ] }}; }