Coder Social home page Coder Social logo

mihneagogu / nofile Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

Ever get tired of writing those damned CMake and Makefile to build your project? Nofile automates the process almost entirely (the only thing you need to add extra are the library flags), building a Makefile for your C project starting from your files which are your entry points (which contain main() ). Nofile is written in rust and it is a multi-threaded program, so it is suited for large projects as well

License: MIT License

C 0.33% Rust 99.67%

nofile's Introduction

nofile

Ever get tired of writing those damned CMake and Makefile to build your project? Nofile automates the process almost entirely (the only thing you need to add extra are the library flags), building a Makefile for your C project starting from your files which are your entry points (which contain main() ). Nofile is written in rust and it is a multi-threaded program, so it is suited for large projects as well

--- USAGE --- To build project use either "cargo build" or "cargo build --release" (need rust installed for that) After that, either do "cargo run" or "cargo run --release" followed by the entrypoints for your executables. What this means: say you want to build 3 executables, and each of them have an entry point called exe1.c exe2.c and exe3.c

Run "cargo run --release " and this will build a Makefile which will compile all 3 executables. !!! IF YOU DO USE EXTERNAL LIBRARIES !!! You will need to manually add the library flags to the Makefile, but it shouldn't be much of a bother.

Alternatively, you can take the binary executables of nofile from target/debug or target/release and place them in the folder with your entrypoints and run it like this: "./nofile ..."

The program would benefit from thread pooling. However, the concurrency in this project was added just to experiemnt with Rust's primitives and see how easy they are to use compared to the standard C/C++ pthreads, mutexes and shared_ptrs and Java's concurrency primitives. The conclusion is that Rust's system is easier to use and saves you a lot from pitfalls.

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.