3 个版本

使用旧的 Rust 2015

0.0.3 2016年3月26日
0.0.2 2015年6月14日
0.0.1 2015年6月14日

#17#osc

Download history • Rust 包仓库 23/week @ 2024-03-03 • Rust 包仓库 44/week @ 2024-03-10 • Rust 包仓库 20/week @ 2024-03-17 • Rust 包仓库 21/week @ 2024-03-24 • Rust 包仓库 85/week @ 2024-03-31 • Rust 包仓库 9/week @ 2024-04-07 • Rust 包仓库 19/week @ 2024-04-14 • Rust 包仓库 23/week @ 2024-04-21 • Rust 包仓库 12/week @ 2024-04-28 • Rust 包仓库 15/week @ 2024-05-05 • Rust 包仓库 17/week @ 2024-05-12 • Rust 包仓库 12/week @ 2024-05-19 • Rust 包仓库 20/week @ 2024-05-26 • Rust 包仓库 17/week @ 2024-06-02 • Rust 包仓库 10/week @ 2024-06-09 • Rust 包仓库 11/week @ 2024-06-16 • Rust 包仓库

60 每月下载量
3crate 中使用 (2 直接使用)

MIT 许可证

16KB
341

_ _ | |_|_|___ _ _ ___ ___ ___ | | | | | | . | -| | |_| |_|_|_| |___|___|___| |___|

tinyosc is a small, liberally licensed opensoundcontrol implementation for
rust. it is, at the moment, quite bare-bones, but the gist and spirit are
both there.

currently, only serialization and deserialization of messages is
supported. pattern matching is planned.

tinyosc supports the following type-tags:

    'i' => i32,
    'f' => f32,
    's' => &str,
    'T' => true,
    'F' => false,
    'N' => Argument::None

you can construct argument lists manually, with vec![] like so:

    Message {
        path: "/where/ever/its/happenin",
        arguments: vec![Argument::i(42), Argument::f(32.32), Argument::F]
    }

or you could use the handy osc_args![] macro, which automatically wraps
arguments in their corresponding Argument variant:

    Message {
        path: "/where/ever/its/happenin",
        arguments: osc_args![42, 32.32, false]
    }

this is identical in effect to the above example with vec![]. the choice
is yours!

simply pair Message serialization/deserialization with std::net::UdpSocket
and you are well on yr way!

questions, comments, and/or ascii art to wrl@illest.net
peace

依赖项

~165KB