openmodel 0.1.0

Geometry library for structures.
Documentation
  • Coverage
  • 0%
    0 out of 16 items documented0 out of 7 items with examples
  • Size
  • Source code size: 4.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.47 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • petrasvestartas/openmodel
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • petrasvestartas

Rust

Installation

Step 1 - Install Rust via Terminal

Install Rust via RustUp Package Manager.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Step 2 - Verify Installation

cargo --version

Commands

Create a new project

cargo new <projectname>

Run a project

cargo run

Run a project without Debug Info

cargo run -q

Step 3 - VSCode

Extensions: rust analyzer

Step 4 - Example

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!");
}

Step 5 - Publish Create

cargo login
cargo publish

Step 6 - Formatting

rustup component add rustfmt
cargo fmt