#android #mobile #ios #macro

mobile-entry-point

为 iOS 和 Android 生成应用程序入口模板!

2 个版本

0.1.1 2020 年 11 月 6 日
0.1.0 2020 年 11 月 6 日

547操作系统

Download history · Rust 包仓库 49/week @ 2024-01-22 · Rust 包仓库 38/week @ 2024-01-29 · Rust 包仓库 40/week @ 2024-02-05 · Rust 包仓库 56/week @ 2024-02-12 · Rust 包仓库 127/week @ 2024-02-19 · Rust 包仓库 112/week @ 2024-02-26 · Rust 包仓库 79/week @ 2024-03-04 · Rust 包仓库 75/week @ 2024-03-11 · Rust 包仓库 64/week @ 2024-03-18 · Rust 包仓库 69/week @ 2024-03-25 · Rust 包仓库 112/week @ 2024-04-01 · Rust 包仓库 52/week @ 2024-04-08 · Rust 包仓库 63/week @ 2024-04-15 · Rust 包仓库 66/week @ 2024-04-22 · Rust 包仓库 45/week @ 2024-04-29 · Rust 包仓库 59/week @ 2024-05-06 · Rust 包仓库

每月 241 次下载

Apache-2.0/MIT

8KB

mobile-entry-point

docs.rs badge CI Status

这个属性宏将一个函数包装起来,使其成为 iOS 或 Android 移动应用的入口点。使用 cargo-mobile 生成相应的项目文件!

use mobile_entry_point::mobile_entry_point;

#[mobile_entry_point]
fn main() {
    println!("Hello world!");
}

依赖项

~1.5MB
~35K SLoC