Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Запуск нашего бинарного файла

Соберите, загрузите и запустите бинарный файл на устройстве:

m print_birthday_card
adb push "$ANDROID_PRODUCT_OUT/system/bin/print_birthday_card" /data/local/tmp
adb shell /data/local/tmp/print_birthday_card

Наконец, мы можем запустить автоматически сгенерированные тесты, чтобы убедиться, что привязки работают:

interoperability/bindgen/Android.bp:

rust_test {
    name: "libbirthday_bindgen_test",
    srcs: [":libbirthday_bindgen"],
    crate_name: "libbirthday_bindgen_test",
    test_suites: ["general-tests"],
    auto_gen_config: true,
    clippy_lints: "none", // Автоматически сгенерированный файл, линтинг пропускаем
    lints: "none",
}
atest libbirthday_bindgen_test