Code Monkey home page Code Monkey logo

Comments (2)

rezural avatar rezural commented on August 17, 2024 1

Of course. Of coursse. Good points.

I am working more on a utility, but still, the users are probably not going to be rustaceans so much (if there is more than 1 user :D).

I have moved the game_plugin/src into src, which probably makes sense for this, as I wil publish on cargo, but it is definately a corner case.

Love the github actions btw. Flawless. Thanks heaps, you saved me a bunch of time.

from bevy_game_template.

NiklasEi avatar NiklasEi commented on August 17, 2024

Hi, glad you like it 🙂

The two crates in the template are not really supposed to be published. Note that they both have publish: false set.

I am not sure what your use case for publishing a game on crates.io is, but if you want to move everything in one crate, simply copy all files from game_plugin/src into src. The only other changes necessary would be an adaption of the imports in main.rs and removal of the game_plugin crate in cargo.toml.

For most users, I would expect that the extra crate makes no difference since they most likely do not publish anything on crates.io. The goal was to split the game into a small executable crate that just starts the process and otherwise uses logic from a library crate (if the example game would grow a lot one could think about adding more and more library crates, as long as the split makes sense).

from bevy_game_template.

Related Issues (20)

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.