Contributing
The repository holds the specification, the four libraries, the C library for microcontrollers and the Godot add-on. Changes to the wire format go into SPEC.md first, then into every library, which must stay compatible with each other.
Run the tests
| Library | Command |
|---|---|
| TypeScript | cd typescript && npm ci && npm test |
| Rust | cd rust && cargo test |
| C# | cd csharp && dotnet test |
| Java | cd java && mvn verify |
| C | make -C c test sanitize lint |
| Godot | godot --headless --path godot --script res://test/test_record.gd, then bash godot/test/interop/run.sh (needs typescript built) |
Set FUNLINK_PORT to keep tests away from a hub that already runs on your machine.
Register a protocol
Open an issue with the protocol name, its endpoint schemes, a short description and a link to its documentation. Until then, use x-<vendor>-<name>.
Edit this site
The site is built with mdBook from website/:
nix run nixpkgs#mdbook -- serve website --open
The specification pages include SPEC.md and OFS-WS-EXTENDED.md from the repository root, so edit those files directly.
License
The libraries are LGPL-3.0-or-later: applications under any license may use them; changes to the libraries themselves stay under the LGPL. The C library and the Godot add-on add a linking exception, so firmware and games may include them without providing the means to relink.