Passes
A Rust library for generating PassKit passes, featuring:
- Read & parse
.pkpass
files - Build & make passes by using library API
- Sign passes with certificate and compress to
.pkpass
- Change field values is pass by key name
- Supported semantic tags for pass & fields
- All features of Wallet Passes standard represented in library
Documentation:
Usage
Add this to your Cargo.toml
:
[]
= "0.1.0"
Example
For building simple pass:
// Creating pass
let pass = new
.grouping_identifier
.logo_text
.build;
Creating package and generate .pkpass
file:
let mut package = new;
// Save package as .pkpass
let path = new;
let file = match create ;
package.write.unwrap;
For more examples, see examples directory.
License
Passes is distributed under the terms of the MIT license. See LICENSE.