Giter VIP home page Giter VIP logo

hexs's Introduction

Project

A project to demonstrate a hex grid in Bevy & Rust

Notes

Debugging

The application uses the bevy-inspector-egui crate as an optional crate intended to only be used during debugging. By using #[cfg(feature = "debug")] and #[cfg_attr(feature = "debug"), derive(SomeOptionalThing)], we can create debug code that is only accessed when running under the debug feature. Running the application for testing normally simply requires cargo run, while running with debug features requires cargo run --features debug. As a sidenote, both of these include debug symbols and are not fully optimized, if you want a fully optimized binary then you must run cargo build --release

Visual Studio Code

If you use Visual Studio Code, be sure to use the rust-analyzer plugin

rust-toolchain

rust-toolchain is a file used to specify which version of Rust the project is using. This is useful for ensuring you're always on the intended version

rustfmt.toml

This file is used to globally override cargo fmt with individual preferences

lint denys and warnings

Rust has a large variety of built in lints, but many need to be turned on. I currently use Embark studio's recommendations EmbarkStudios/rust-ecosystem#59, but they have to pasted at the top of the entry point, in this case at the top of main.rs. While this is not ideal, formal definitions in a file are not a part of Rust yet

hexs's People

Contributors

deanbdean avatar

Watchers

 avatar

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.