Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

aimp.rs

AIMP SDK for Rust

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

aimp.rs

AIMP SDK for Rust

How to use

Cargo

In Cargo.toml:

toml
[lib]
crate-type = ["cdylib"] # to compile into DLL

[dependencies]
aimp = { git = "https://github.com/ark0f/aimp.rs" }

cargo-aimp

Then you need to install cargo-aimp utility:

pascal
cargo install --git https://github.com/ark0f/aimp.rs --bin cargo-aimp

And simply run it:

pascal
cargo aimp

It will build and install plugin, run AIMP with attached console

For more information about cargo-aimp run it with --help flag

Plugin structure

See examples and

Tests

To test inside AIMP:

rust
use aimp::AimpString;
#[cfg(feature = "testing")]
use aimp::test::TesterPlugin;

#[aimp::test]
fn some_test() {
    let s = AimpString::from("123");
    assert_eq!(s.to_string(), "123");
}

#[cfg(not(feature = "testing"))]
aimp::main!(YourPlugin);

#[cfg(feature = "testing")]
aimp::main!(TesterPlugin);

Cargo.toml:

toml
[features]
testing = []

And then:

pascal
cargo aimp --features testing

License

aimp.rs under either of:

at your option.