| Crates.io | openmodel |
| lib.rs | openmodel |
| version | 0.1.0 |
| created_at | 2025-01-09 23:09:01.733109+00 |
| updated_at | 2025-01-09 23:09:01.733109+00 |
| description | Geometry library for structures. |
| homepage | https://vestartas.com/ |
| repository | https://github.com/petrasvestartas/openmodel |
| max_upload_size | |
| id | 1510701 |
| size | 4,508 |
Install Rust via RustUp Package Manager.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo --version
cargo new <projectname>
cargo run
cargo run -q
Extensions: rust analyzer
mod point;
use point::Point;
fn main() {
let p0 = Point::new(0.0, 0.0, 0.0);
let p1 = Point::new(1.0, 1.0, 1.0);
println!("Distance: {}", p0.distance(&p1));
println!("Hello, world!");
}
cargo login
cargo publish
rustup component add rustfmt
cargo fmt