Building an end-to-end solution as a package
In the previous section, we identified what we needed to do to build our catastrophe model package. We can achieve it with the following steps:
- Build a footprint merging process.
- Build a vulnerability and probability merging process.
- Build a Python interface in Rust.
- Build an interface in Python.
- Build package installation instructions.
Before we build anything, we must define our dependencies in our Cargo.toml
file with the following code:
[package] name = "flitton_oasis_risk_modelling" version = "0.1.0" authors = ["Maxwell Flitton <maxwellflitton@gmail.com>"] edition = "2018" [dependencies] csv = "1.1" serde = { version = "1", features = ["derive"] } [lib] name = "flitton_oasis_risk_modelling" crate-type=["rlib", "cdylib"] [dependencies.pyo3] version = "0.13.2" features = ["extension...