{"id":28398046,"url":"https://github.com/dodorare/apple-bundle-rs","last_synced_at":"2025-10-03T20:42:59.800Z","repository":{"id":49711976,"uuid":"363725778","full_name":"dodorare/apple-bundle-rs","owner":"dodorare","description":"Apple BundleResources serializer and deserializer for Rust 🛠","archived":false,"fork":false,"pushed_at":"2022-08-03T22:41:32.000Z","size":203,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-01T12:34:16.425Z","etag":null,"topics":["apple","apple-bundle-resources","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dodorare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-02T18:47:31.000Z","updated_at":"2025-05-03T21:44:06.000Z","dependencies_parsed_at":"2022-08-25T06:51:04.796Z","dependency_job_id":null,"html_url":"https://github.com/dodorare/apple-bundle-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dodorare/apple-bundle-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodorare%2Fapple-bundle-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodorare%2Fapple-bundle-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodorare%2Fapple-bundle-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodorare%2Fapple-bundle-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodorare","download_url":"https://codeload.github.com/dodorare/apple-bundle-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodorare%2Fapple-bundle-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262431063,"owners_count":23309967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","apple-bundle-resources","rust"],"created_at":"2025-06-01T03:39:10.675Z","updated_at":"2025-10-03T20:42:59.734Z","avatar_url":"https://github.com/dodorare.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eApple Bundle Resources\u003c/h1\u003e\n\n\u003ca href=\"https://github.com/dodorare/apple-bundle-rs/actions\"\u003e\u003cimg alt=\"CI Info\" src=\"https://github.com/dodorare/apple-bundle-rs/workflows/CI/badge.svg\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://crates.io/crates/apple-bundle\"\u003e\u003cimg alt=\"Crate Info\" src=\"https://img.shields.io/crates/v/apple-bundle.svg\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://docs.rs/apple-bundle/\"\u003e\u003cimg alt=\"API Docs\" src=\"https://img.shields.io/badge/docs.rs-apple-bundle\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://crates.io/crates/apple-bundle\"\u003e\u003cimg alt=\"Crate\" src=\"https://img.shields.io/crates/d/apple-bundle?label=cargo%20installs\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n[AppleBundleResources] serializer and deserializer for Rust. This library will also likely continue to stay up to date with the official Apple Bundle Resources specification as changes happen.\n\n[AppleBundleResources]: https://developer.apple.com/documentation/bundleresources\n\n```toml\n# Cargo.toml\n[dependencies]\napple-bundle = \"*\"\n```\n\nCreate `Info.plist` by yourself:\n```rs\nlet properties = InfoPlist {\n    localization: Localization {\n        bundle_development_region: Some(\"en\".to_owned()),\n        ..Default::default()\n    },\n    launch: Launch {\n        bundle_executable: Some(\"test\".to_owned()),\n        ..Default::default()\n    },\n    identification: Identification {\n        bundle_identifier: \"com.test.test-id\".to_owned(),\n        ..Default::default()\n    },\n    bundle_version: BundleVersion {\n        bundle_version: Some(\"1\".to_owned()),\n        bundle_info_dictionary_version: Some(\"1.0\".to_owned()),\n        bundle_short_version_string: Some(\"1.0\".to_owned()),\n        ..Default::default()\n    },\n    naming: Naming {\n        bundle_name: Some(\"Test\".to_owned()),\n        ..Default::default()\n    },\n    categorization: Categorization {\n        bundle_package_type: Some(\"APPL\".to_owned()),\n        ..Default::default()\n    },\n    launch_interface: LaunchInterface {\n        launch_storyboard_name: Some(\"LaunchScreen\".to_owned()),\n        ..Default::default()\n    },\n    styling: Styling {\n        requires_full_screen: Some(false),\n        ..Default::default()\n    },\n    orientation: Orientation {\n        supported_interface_orientations: Some(vec![\n            InterfaceOrientation::Portrait,\n            InterfaceOrientation::PortraitUpsideDown,\n            InterfaceOrientation::LandscapeLeft,\n            InterfaceOrientation::LandscapeRight,\n        ]),\n        ..Default::default()\n    },\n    ..Default::default()\n};\n// Create Info.plist file\nlet file_path = dir.path().join(PLIST_FILE_NAME);\nlet file = std::fs::File::create(file_path).unwrap();\n// Write to Info.plist file\nplist::to_writer_xml(file, \u0026properties).unwrap();\n```\n\nOr parse any `Info.plist` file:\n```rs\npub const PLIST_FILE_EXAMPLE: \u0026str = r#\"\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003cdict\u003e\n    \u003ckey\u003eCFBundlePackageType\u003c/key\u003e\n    \u003cstring\u003eAPPL\u003c/string\u003e\n    \u003ckey\u003eCFBundleIdentifier\u003c/key\u003e\n    \u003cstring\u003ecom.test.test-id\u003c/string\u003e\n    \u003ckey\u003eCFBundleName\u003c/key\u003e\n    \u003cstring\u003eTest\u003c/string\u003e\n    \u003ckey\u003eCFBundleVersion\u003c/key\u003e\n    \u003cstring\u003e1\u003c/string\u003e\n    \u003ckey\u003eCFBundleShortVersionString\u003c/key\u003e\n    \u003cstring\u003e1.0\u003c/string\u003e\n    \u003ckey\u003eCFBundleInfoDictionaryVersion\u003c/key\u003e\n    \u003cstring\u003e1.0\u003c/string\u003e\n    \u003ckey\u003eCFBundleDevelopmentRegion\u003c/key\u003e\n    \u003cstring\u003een\u003c/string\u003e\n    \u003ckey\u003eUILaunchStoryboardName\u003c/key\u003e\n    \u003cstring\u003eLaunchScreen\u003c/string\u003e\n    \u003ckey\u003eUISupportedInterfaceOrientations\u003c/key\u003e\n    \u003carray\u003e\n        \u003cstring\u003eUIInterfaceOrientationPortrait\u003c/string\u003e\n        \u003cstring\u003eUIInterfaceOrientationPortraitUpsideDown\u003c/string\u003e\n        \u003cstring\u003eUIInterfaceOrientationLandscapeLeft\u003c/string\u003e\n        \u003cstring\u003eUIInterfaceOrientationLandscapeRight\u003c/string\u003e\n    \u003c/array\u003e\n    \u003ckey\u003eUIRequiresFullScreen\u003c/key\u003e\n    \u003cfalse /\u003e\n    \u003ckey\u003eCFBundleExecutable\u003c/key\u003e\n    \u003cstring\u003etest\u003c/string\u003e\n\u003c/dict\u003e\n\u003c/plist\u003e\"#;\n// Read from bytes\nlet properties: InfoPlist = plist::from_bytes(\u0026PLIST_FILE_EXAMPLE.as_bytes()).unwrap();\n// Or from file\nlet file_path = \"/path/to/Info.plist\";\nlet properties: InfoPlist = plist::from_file(\u0026file_path).unwrap();\n```\n\n### License\n\nThis project is licensed under Apache License, Version 2.0, ([LICENSE](LICENSE) or http://www.apache.org/licenses/LICENSE-2.0).\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in toml-rs by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodorare%2Fapple-bundle-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodorare%2Fapple-bundle-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodorare%2Fapple-bundle-rs/lists"}