[package]
edition = "2024"
rust-version = "1.95"
name = "hydr"
version = "0.2.0"
build = false
exclude = [
".agents/",
"resource/",
".github/",
"crates/",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hydrology and hydraulic simulation on numr runtimes"
readme = "README.md"
keywords = [
"hydraulics",
"shallow-water",
"flood",
"simulation",
]
categories = [
"science",
"simulation",
]
license = "Apache-2.0"
repository = "https://github.com/ml-rust/hydr"
[features]
cuda = [
"numr/cuda",
"solvr/cuda",
"hydr-channel/cuda",
"hydr-coupling/cuda",
"hydr-core/cuda",
"hydr-drainage/cuda",
"hydr-runoff/cuda",
"hydr-soil/cuda",
"hydr-solver/cuda",
"hydr-storage/cuda",
"hydr-structures/cuda",
]
wgpu = [
"numr/wgpu",
"solvr/wgpu",
"hydr-channel/wgpu",
"hydr-coupling/wgpu",
"hydr-core/wgpu",
"hydr-drainage/wgpu",
"hydr-runoff/wgpu",
"hydr-soil/wgpu",
"hydr-solver/wgpu",
"hydr-storage/wgpu",
"hydr-structures/wgpu",
]
[lib]
name = "hydr"
path = "src/lib.rs"
[[example]]
name = "contributing_support"
path = "examples/contributing_support.rs"
[[example]]
name = "controlled_gates"
path = "examples/controlled_gates.rs"
[[example]]
name = "controlled_gates_reference"
path = "examples/controlled_gates_reference.rs"
[[example]]
name = "controlled_pumps"
path = "examples/controlled_pumps.rs"
[[example]]
name = "controlled_pumps_reference"
path = "examples/controlled_pumps_reference.rs"
[[example]]
name = "gate_actuators_reference"
path = "examples/gate_actuators_reference.rs"
[[example]]
name = "gate_laws_reference"
path = "examples/gate_laws_reference.rs"
[[example]]
name = "gate_trajectories_reference"
path = "examples/gate_trajectories_reference.rs"
[[example]]
name = "grid"
path = "examples/grid.rs"
[[example]]
name = "level_pool"
path = "examples/level_pool.rs"
[[example]]
name = "level_pool_sources_reference"
path = "examples/level_pool_sources_reference.rs"
[[example]]
name = "native_worker"
path = "examples/native_worker.rs"
[[example]]
name = "operating_controls_reference"
path = "examples/operating_controls_reference.rs"
[[example]]
name = "operating_sources"
path = "examples/operating_sources.rs"
[[example]]
name = "pump_laws_reference"
path = "examples/pump_laws_reference.rs"
[[example]]
name = "rain_basin"
path = "examples/rain_basin.rs"
[[example]]
name = "reference_comparison"
path = "examples/reference_comparison.rs"
[[example]]
name = "reservoir"
path = "examples/reservoir.rs"
[[example]]
name = "soil_reference"
path = "examples/soil_reference.rs"
[[example]]
name = "structure_laws_reference"
path = "examples/structure_laws_reference.rs"
[[example]]
name = "structures"
path = "examples/structures.rs"
[[example]]
name = "subcatchment"
path = "examples/subcatchment.rs"
[[example]]
name = "subcatchment_reference"
path = "examples/subcatchment_reference.rs"
[[example]]
name = "surface_runoff"
path = "examples/surface_runoff.rs"
[[test]]
name = "analytical_cases"
path = "tests/analytical_cases.rs"
[[test]]
name = "cartesian_grid"
path = "tests/cartesian_grid.rs"
[[test]]
name = "channel_boundaries"
path = "tests/channel_boundaries.rs"
[[test]]
name = "channel_flow"
path = "tests/channel_flow.rs"
[[test]]
name = "channel_lateral"
path = "tests/channel_lateral.rs"
[[test]]
name = "channel_pools"
path = "tests/channel_pools.rs"
[[test]]
name = "channel_reservoir"
path = "tests/channel_reservoir.rs"
[[test]]
name = "channel_restart"
path = "tests/channel_restart.rs"
[[test]]
name = "channel_surveyed"
path = "tests/channel_surveyed.rs"
[[test]]
name = "channel_tensor_forcing"
path = "tests/channel_tensor_forcing.rs"
[[test]]
name = "channel_triangular"
path = "tests/channel_triangular.rs"
[[test]]
name = "checkpoint_identity"
path = "tests/checkpoint_identity.rs"
[[test]]
name = "checkpoint_package"
path = "tests/checkpoint_package.rs"
[[test]]
name = "component_capabilities"
path = "tests/component_capabilities.rs"
[[test]]
name = "composite_acceptance"
path = "tests/composite_acceptance.rs"
[[test]]
name = "contributing_support"
path = "tests/contributing_support.rs"
[[test]]
name = "controlled_gates"
path = "tests/controlled_gates.rs"
[[test]]
name = "controlled_pumps"
path = "tests/controlled_pumps.rs"
[[test]]
name = "coupled_level_pool_sources"
path = "tests/coupled_level_pool_sources.rs"
[[test]]
name = "coupled_level_pools"
path = "tests/coupled_level_pools.rs"
[[test]]
name = "coupled_pool_inflows"
path = "tests/coupled_pool_inflows.rs"
[[test]]
name = "cross_sections"
path = "tests/cross_sections.rs"
[[test]]
name = "culvert_barrels"
path = "tests/culvert_barrels.rs"
[[test]]
name = "culvert_blockage"
path = "tests/culvert_blockage.rs"
[[test]]
name = "culvert_inlets"
path = "tests/culvert_inlets.rs"
[[test]]
name = "culvert_laws"
path = "tests/culvert_laws.rs"
[[test]]
name = "culvert_outlets"
path = "tests/culvert_outlets.rs"
[[test]]
name = "culvert_shapes"
path = "tests/culvert_shapes.rs"
[[test]]
name = "culverts"
path = "tests/culverts.rs"
[[test]]
name = "definition_identity"
path = "tests/definition_identity.rs"
[[test]]
name = "engine_contract"
path = "tests/engine_contract.rs"
[[test]]
name = "exterior_boundaries"
path = "tests/exterior_boundaries.rs"
[[test]]
name = "exterior_contracts"
path = "tests/exterior_contracts.rs"
[[test]]
name = "gate_actuators"
path = "tests/gate_actuators.rs"
[[test]]
name = "gate_laws"
path = "tests/gate_laws.rs"
[[test]]
name = "gate_trajectories"
path = "tests/gate_trajectories.rs"
[[test]]
name = "land_snapshot"
path = "tests/land_snapshot.rs"
[[test]]
name = "land_sources"
path = "tests/land_sources.rs"
[[test]]
name = "layering"
path = "tests/layering.rs"
[[test]]
name = "level_pool"
path = "tests/level_pool.rs"
[[test]]
name = "level_pool_sources"
path = "tests/level_pool_sources.rs"
[[test]]
name = "model_contracts"
path = "tests/model_contracts.rs"
[[test]]
name = "muscl_subgrid_coastal"
path = "tests/muscl_subgrid_coastal.rs"
[[test]]
name = "native_pipe_drainage"
path = "tests/native_pipe_drainage.rs"
[[test]]
name = "native_worker"
path = "tests/native_worker.rs"
[[test]]
name = "nonlinear_reservoir"
path = "tests/nonlinear_reservoir.rs"
[[test]]
name = "numerical_rejection"
path = "tests/numerical_rejection.rs"
[[test]]
name = "operating_controls"
path = "tests/operating_controls.rs"
[[test]]
name = "operating_sources"
path = "tests/operating_sources.rs"
[[test]]
name = "physical_boundaries"
path = "tests/physical_boundaries.rs"
[[test]]
name = "prismatic_area_points"
path = "tests/prismatic_area_points.rs"
[[test]]
name = "prismatic_geometry"
path = "tests/prismatic_geometry.rs"
[[test]]
name = "prismatic_perimeter"
path = "tests/prismatic_perimeter.rs"
[[test]]
name = "prismatic_perimeter_area_points"
path = "tests/prismatic_perimeter_area_points.rs"
[[test]]
name = "pump_laws"
path = "tests/pump_laws.rs"
[[test]]
name = "radial_shoreline"
path = "tests/radial_shoreline.rs"
[[test]]
name = "reservoir_snapshot"
path = "tests/reservoir_snapshot.rs"
[[test]]
name = "river_acceptance"
path = "tests/river_acceptance.rs"
[[test]]
name = "runoff_pools"
path = "tests/runoff_pools.rs"
[[test]]
name = "runtime_backends"
path = "tests/runtime_backends.rs"
[[test]]
name = "soil_component"
path = "tests/soil_component.rs"
[[test]]
name = "sources_and_ports"
path = "tests/sources_and_ports.rs"
[[test]]
name = "structure_blockage"
path = "tests/structure_blockage.rs"
[[test]]
name = "structure_laws"
path = "tests/structure_laws.rs"
[[test]]
name = "subcatchment"
path = "tests/subcatchment.rs"
[[test]]
name = "subcatchment_snapshot"
path = "tests/subcatchment_snapshot.rs"
[[test]]
name = "surface_channel_drainage"
path = "tests/surface_channel_drainage.rs"
[[test]]
name = "surface_channels"
path = "tests/surface_channels.rs"
[[test]]
name = "surface_drainage"
path = "tests/surface_drainage.rs"
[[test]]
name = "surface_f32"
path = "tests/surface_f32.rs"
[[test]]
name = "surface_ports"
path = "tests/surface_ports.rs"
[[test]]
name = "surveyed_point_riemann"
path = "tests/surveyed_point_riemann.rs"
[[test]]
name = "surveyed_riemann"
path = "tests/surveyed_riemann.rs"
[[test]]
name = "surveyed_transport_references"
path = "tests/surveyed_transport_references.rs"
[[test]]
name = "swmm_drainage"
path = "tests/swmm_drainage.rs"
[[test]]
name = "terrain_envelope"
path = "tests/terrain_envelope.rs"
[[test]]
name = "transverse_transport"
path = "tests/transverse_transport.rs"
[dependencies.hydr-channel]
version = "=0.2.0"
[dependencies.hydr-core]
version = "=0.2.0"
[dependencies.hydr-coupling]
version = "=0.2.0"
[dependencies.hydr-drainage]
version = "=0.2.0"
[dependencies.hydr-runoff]
version = "=0.2.0"
[dependencies.hydr-soil]
version = "=0.2.0"
[dependencies.hydr-solver]
version = "=0.2.0"
[dependencies.hydr-storage]
version = "=0.2.0"
[dependencies.hydr-structures]
version = "=0.2.0"
[dependencies.numr]
version = "0.16.0"
default-features = false
[dependencies.solvr]
version = "0.4.0"
default-features = false
[lints.clippy]
expect_used = "deny"
panic = "deny"
unwrap_used = "deny"
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3
[profile.profiling]
debug = 2
inherits = "release"
[profile.release]
lto = "thin"
codegen-units = 1