Serde OSC
Serialization and deserialization of Open Sound Control 1.0 packets represented using structs/tuples/anything supported by serde.
Supports the 4 types specified in OSC 1.0: 'f', 'i', 's', 'b' corresponding to f32
, i32
, String
and Vec<u8>
("blobs"), respectively.
Note that blobs must be wrapped in Serde's ByteBuf type
Also supports nesting of OSC bundles.
Usage
Refer to the examples under examples/
. They can be run with (e.g.)
For more detailied usage, refer to the tests/
directory.
Development status
- Deserialization of both OSC messages and bundles into any sequence type (structs, tuples, etc).
- Serialization of both OSC messages and bundles from any sequence type (structs, tuples, etc).
- Examples and documentation.
This library is under active development and may see some interface-breaking changes.
License
Serde OSC tries to follow the same licensing as Serde. Serde OSC is licensed under either of
- Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Serde OSC by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.