Skip to content

cameron-devine/rusty-epanet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rusty EPANET

This is a safe API wrapper for EPANET in Rust. The EPANET source code is pulled as a git submodule. bindgen is used to expose the C library to rust and then generate rust bindings. This generates a lot of unsafe code so to prevent users of this library from having to wrap everything in unsafe blocks (unsafe{}) there is a EPANET wrapper struct that wraps all of the C API calls into safe code.

Thanks to this guide for great guidance and information: https://medium.com/dwelo-r-d/using-c-libraries-in-rust-13961948c72a

Installing

If you already cloned this repo without pulling the submodule you can run git submodule update --init --recursive.

Building and running tests

The tests are very minimal and just used as a sanity check to make sure the bindings generated properly.

cargo build
cargo test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published