zesterer / coord-rs Goto Github PK
View Code? Open in Web Editor NEW[deprecated] A simple, ergonomic vector mathematics crate for Rust
Home Page: https://docs.rs/coord/
License: MIT License
[deprecated] A simple, ergonomic vector mathematics crate for Rust
Home Page: https://docs.rs/coord/
License: MIT License
currently you have to dereference it explicitly
*x = *y + *z
new maybe:
*x = y + z
Despite being tagged on crates.io
, coord
is not no_std
compatible because of a transitive dependency on std
through the num-traits
crate.
It looks like the continuous build is only building on Travis's default target (which I'm guessing is x86-64 linux?). Crates that set #[no_std]
can still access the std
crate if available. To test, try a bare metal target. For example:
$ rustup target add thumbv7em-none-eabihf
$ git clone https://github.com/zesterer/coord-rs.git
$ cd coord-rs
$ cargo build --target thumbv7em-none-eabihf
You'll get an error like the following:
Checking rustc-serialize v0.3.24
Checking rand v0.4.6
Compiling num-iter v0.1.37
Checking num-traits v0.2.6
error[E0463]: can't find crate for `std`
|
= note: the `thumbv7em-none-eabihf` target may not be installed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `rand`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `std`
|
= note: the `thumbv7em-none-eabihf` target may not be installed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `std`
--> /home/cbiffle/.cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.6/src/lib.rs:21:1
|
21 | extern crate std;
| ^^^^^^^^^^^^^^^^^ can't find crate
|
= note: the `thumbv7em-none-eabihf` target may not be installed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `rustc-serialize`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `num-traits`.
allow consts like:
const ENTITY_MIDDLE_OFFSET: Vec3<f32> = Vec3::new(0.0, 0.0, 0.9);
if res.correction.x != 0.0 {
entity.vel_mut().x = 0.0;
}
if res.correction.y != 0.0 {
entity.vel_mut().y = 0.0;
}
if res.correction.z != 0.0 {
entity.vel_mut().z = 0.0;
}
if velocity.x.abs() / half_chunk_scale.x > speed_step_cnt {
speed_step_cnt = velocity.x.abs() / half_chunk_scale.x;
}
if velocity.y.abs() / half_chunk_scale.y > speed_step_cnt {
speed_step_cnt = velocity.y.abs() / half_chunk_scale.y;
}
if velocity.z.abs() / half_chunk_scale.z > speed_step_cnt {
speed_step_cnt = velocity.z.abs() / half_chunk_scale.z;
}
Is it already available or planed?
e.g. by having a easy (or implicit) conversion from Vec3 to Vec3
for better performance without copying. Same use-case than #7
I've implemented this package and looked what it would take to add a couple of features. I came to github and see it's intentionally no longer maintained. Could you please label this package as deprecated on crates.io. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.