Code Monkey home page Code Monkey logo

Comments (3)

manfredlotz avatar manfredlotz commented on August 26, 2024 1

Just for the record.

I managed to rewrite a limited version of libmagic in Rust so that I can now build a static library using muslrust. It was quite easy to do because I don't need to discriminate between different types of binaries, or archives aso. Means, I get what I want by doing much less analyzing work than libmagic which makes my version much faster.

from muslrust.

clux avatar clux commented on August 26, 2024

Hm, what crates require this? I've not come across this library.

Instinctively; not sure it's worth making a regular build image bigger for the smaller subset of people that want it though. Also, don't really want a bunch more C libraries in here unless they are genuinely useful in popular crates.

A solution could be to use the pattern by portier-broker and extend muslrust to compile in your libmagic, i'll gladly link to that as a solution for extra libraries at the very least!

from muslrust.

manfredlotz avatar manfredlotz commented on August 26, 2024

Crate magic requires libmagic.

The main problem I face is that I don't know exactly how to build a static libmagic. Somewhere I found file-5.34.tar.gz which contains the libmagic stuff.

from muslrust.

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.