Git Product home page Git Product logo

Comments (6)

gferon avatar gferon commented on July 19, 2024

I had a look, and it's only possible if we copy the required files there before packaging. I believe this can be done in a build.rs. I can have a look.

from flatdata.

gxtaillon avatar gxtaillon commented on July 19, 2024

If you have pipenv you can install flatdata-generator run pipenv run which flatdata_generator and pass the output as generator_path from the example build.rs

from flatdata.

VeaaC avatar VeaaC commented on July 19, 2024

It might at least no harm: E.g. making the path optional, and trying to auto-discover it in case it has not been specified.

I am also thinking that it would be very neat if we could package it in a way that the user does not need to install anything (maybe not even python?), e.g.: https://github.com/indygreg/PyOxidizer

Then we would have one package for using flatdata (flatdata), and one for generating files (flatdata-generate?).

from flatdata.

gxtaillon avatar gxtaillon commented on July 19, 2024

Yeah it would make it easier to get started.
I would love a package on crates so that cargo install flatdata-generator becomes possible, with the build file picking it up automatically and maybe even creating the source/target folders at a default location.

from flatdata.

gferon avatar gferon commented on July 19, 2024

This is actually a good idea @gxtaillon. I'll give it a go to see how it turns out.

from flatdata.

gferon avatar gferon commented on July 19, 2024

@gxtaillon we just published v0.3.1 of flatdata on crates.io with a helper function for build.rs scripts that should help you. Could you give it a go?

from flatdata.

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.