{"id":28398042,"url":"https://github.com/dodorare/android-manifest-rs","last_synced_at":"2025-06-28T12:31:16.472Z","repository":{"id":41310728,"uuid":"335619812","full_name":"dodorare/android-manifest-rs","owner":"dodorare","description":"Android Manifest serializer and deserializer for Rust 🛠","archived":false,"fork":false,"pushed_at":"2023-07-20T19:25:29.000Z","size":505,"stargazers_count":38,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-01T12:34:13.473Z","etag":null,"topics":["android","android-manifest","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-02-03T12:37:53.000Z","updated_at":"2025-03-25T06:12:25.000Z","dependencies_parsed_at":"2022-08-19T01:31:02.742Z","dependency_job_id":null,"html_url":"https://github.com/dodorare/android-manifest-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dodorare/android-manifest-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodorare%2Fandroid-manifest-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodorare%2Fandroid-manifest-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodorare%2Fandroid-manifest-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodorare%2Fandroid-manifest-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodorare","download_url":"https://codeload.github.com/dodorare/android-manifest-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodorare%2Fandroid-manifest-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262430934,"owners_count":23309955,"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":["android","android-manifest","rust"],"created_at":"2025-06-01T03:39:10.036Z","updated_at":"2025-06-28T12:31:16.466Z","avatar_url":"https://github.com/dodorare.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eAndroid Manifest\u003c/h1\u003e\n\n\u003ca href=\"https://github.com/dodorare/android-manifest-rs/actions\"\u003e\u003cimg alt=\"CI Info\" src=\"https://github.com/dodorare/android-manifest-rs/workflows/CI/badge.svg\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://crates.io/crates/android-manifest\"\u003e\u003cimg alt=\"Crate Info\" src=\"https://img.shields.io/crates/v/android-manifest.svg\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://docs.rs/android-manifest/\"\u003e\u003cimg alt=\"API Docs\" src=\"https://img.shields.io/badge/docs.rs-android-manifest\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://crates.io/crates/android-manifest\"\u003e\u003cimg alt=\"Crate\" src=\"https://img.shields.io/crates/d/android-manifest?label=cargo%20installs\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n[AndroidManifest] serializer and deserializer for Rust. This library will also likely continue to stay up to date with the official AndroidManifest specification as changes happen.\n\n[AndroidManifest]: https://developer.android.com/guide/topics/manifest/manifest-intro\n\n```toml\n# Cargo.toml\n[dependencies]\nandroid-manifest = \"*\"\n```\n\nCreate `AndroidManifest.xml` by yourself:\n```rust\nlet manifest = AndroidManifest {\n    package: \"com.example.toggletest\".to_string(),\n    version_code: Some(1),\n    version_name: Some(\"1.0\".to_string()),\n    application: Application {\n        allow_backup: Some(true.into())),\n        icon: Some(MipmapOrDrawableResource::mipmap(\"ic_launcher\", None)),\n        label: Some(StringResourceOrString::resource(\"app_name\", None)),\n        theme: Some(StyleResource::new(\"AppTheme\", None)),\n        activity: vec![Activity {\n            label: Some(StringResourceOrString::resource(\"app_name\", None)),\n            name: \"com.example.toggletest.MainActivity\".to_string(),\n            intent_filter: vec![IntentFilter {\n                action: vec![Action {\n                    name: Some(\"android.intent.action.MAIN\".to_string()),\n                }],\n                category: vec![Category {\n                    name: Some(\"android.intent.category.LAUNCHER\".to_string()),\n                }],\n                ..Default::default()\n            }],\n            ..Default::default()\n        }],\n        ..Default::default()\n    },\n    ..Default::default()\n};\nlet serialized_manifest = android_manifest::to_string_pretty(\u0026manifest).unwrap();\n```\n\nOr parse any `AndroidManifest.xml` file:\n```rust\nlet xml = r#\"\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cmanifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n          package=\"com.example.toggletest\"\n          android:versionCode=\"1\"\n          android:versionName=\"1.0\"\u003e\n    \u003capplication android:allowBackup=\"true\"\n               android:icon=\"@drawable/ic_launcher\"\n               android:label=\"@string/app_name\"\n               android:theme=\"@style/AppTheme\"\u003e\n        \u003cactivity android:label=\"@string/app_name\"\n                  android:name=\"com.example.toggletest.MainActivity\"\u003e\n            \u003cintent-filter\u003e\n                \u003caction android:name=\"android.intent.action.MAIN\" /\u003e\n                \u003ccategory android:name=\"android.intent.category.LAUNCHER\" /\u003e\n            \u003c/intent-filter\u003e\n        \u003c/activity\u003e\n    \u003c/application\u003e\n\u003c/manifest\u003e\"#;\nlet manifest: AndroidManifest = android_manifest::from_str(xml).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%2Fandroid-manifest-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodorare%2Fandroid-manifest-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodorare%2Fandroid-manifest-rs/lists"}