Coder Social home page Coder Social logo

Comments (4)

tjayrush avatar tjayrush commented on July 29, 2024 1

It's a simplified make--for use in any environment, not just rust. That's the reason I was looking for. I actually was using 'make' to run cargo and then a bunch of other stuff (like linking to a c++ program and then running some tests). I simply renamed the makefile to justfile and it worked perfectly. Thanks. I think an FAQ entry might help--also just look over the documentation with an eye towards the very first impression a user might get. I think my first impression was a make file system >>for rust<<< I'm not sure where that came from, but perhaps there's words in the first part of the readme that say that or something. Nice project. I like the idea of a simplified make.

from just.

casey avatar casey commented on July 29, 2024

Good question!

Cargo's build scripts have a pretty specific and limited use, they are used to control how cargo will build your project. Examples of this would be building a C library, finding the location of a system library you need to link in, running a codegen step, or adding flags to rustc invocations.

just, on the other hand, is for all those other miscellaneous commands you might run as part of development. You might have commands for running tests in different configurations, linting your code, pushing build artifacts to a server, removing temporary files, and the like.

Since you're used make, you've probably snuck in a few of these kinds of commands your makefile.

from just.

casey avatar casey commented on July 29, 2024

Also, although just is written in rust, it can be used regardless of which language(s) your project is written in.

I think I'll add a FAQ and make this the first entry.

from just.

casey avatar casey commented on July 29, 2024

I simply renamed the makefile to justfile and it worked perfectly.

That's awesome to hear!

I like your explanation of it, although I would worry that people might assume that it's a build system if I call it simplified make. I might add something to the documentation that simple makefiles will probably work with just.

from just.

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.