Git Product home page Git Product logo

coord-rs's Introduction

pancake

A personal C++ utility library for a variety of uses

What does it do?

pancake includes many pieces of boilerplate code that are common throughout my software including:

Why the name 'pancake'?

I don't know. I searched "random words" online and 'pancake' was the first thing I saw. I'm not very inventive when it comes to names.

coord-rs's People

Contributors

johannesvollmer avatar zesterer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

coord-rs's Issues

alloing &Vec3 + &Vec3

currently you have to dereference it explicitly

*x = *y  + *z

new maybe:

*x = y  + z

add a map_vector method to iterate 2 vectors at once

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;
        }

Please mark the crate as deprecated on crates.io

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.

coord is not actually no_std compatible

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`.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.