rstox is a Rust wrapper for toxcore.
You need to have toxcore installed as dependency to use rstox. Follow the install instructions.
To use rstox in your project, add to your Cargo.toml:
[dependencies.rstox]
git = "https://github.com/tox-rs/rstox.git"
and make something - example
Toxcore API documentation
rstox is licensed under GPLv3+