fre-rs
Safe, ergonomic Rust abstraction over the AIR Native Extension (ANE) C API (fre-sys) for native-side development.
This crate depends on the AIR SDK via fre-sys. See its documentation for setup instructions.
References
- Adobe AIR SDK from HARMAN
- AIR | AIR SDK
- ActionScript 3.0 Language Reference
- Adobe Flash Platform * Developing Native Extensions for AdobeAIR
- Adobe ActionScript® 3 (AS3) API Reference
Safety
This crate provides safe abstractions over the ANE C API.
Underlying objects may still be modified externally by the AIR runtime.
Unsafe code is minimized and encapsulated, but correct usage of this crate's API is still required.
License
MIT OR Apache-2.0
Getting Started
The primary entry points of this crate are the macros extension! and function!.
Refer to their documentation for details and examples.
Example
use *;
extension!
function!
The repository provides a comprehensive example of ANE integration within an AIR project. It covers the full development workflow, including native implementation (Rust), ActionScript 3.0 wrapper, and automated build script.
To build and execute the example, ensure the following environment is configured:
- Operating System: Windows 10+ (x86-64)
- Rust Toolchain: version 1.85+ (supporting Edition 2024)
- C++ Build Tools: Visual Studio Build Tools (MSVC)
- AIR SDK: HARMAN AIR SDK (latest version recommended)
- Java Runtime: JRE or JDK 8+ (required for the AIR Developer Tool)