Giter Club home page Giter Club logo

Comments (5)

wangfenjin avatar wangfenjin commented on May 23, 2024

It's a reasonable requirement, but may not easy to implement as duckdb don't have a pre-release build for us to depends on, which means we may need to checkout the branch or commit-id to build the version we need, this may not that easy.

For now my suggested solution might be use the buildtime_bindgen feature, and bring your own duckdb release and header file.

from duckdb-rs.

wangfenjin avatar wangfenjin commented on May 23, 2024

Currently our build.rs depends on the amalgamation duckdb.cpp to build, if we don't have that file, it means we need to involve cmake in the build process, which will make the build.rs much more complex than current solution

from duckdb-rs.

massung avatar massung commented on May 23, 2024

Okay. That makes sense. I understand it can complicate the process and that may be undesirable. As an FYI, though, it's not necessary to involve CMake or to "build" anything:

git clone https://github.com/duckdb/duckdb
cd duckdb
python3 scripts/amalgamation.py

The above will create src/amalgamation/duckdb.{cpp,hpp} and runs in a few seconds (but does require Python 3, which may be a reasonable requirement to already be installed).

I'm fine doing this myself, though. Is there an example of using buildtime_bindgen and pointing to those files (or that directory) I can reference?

Thanks!

from duckdb-rs.

wangfenjin avatar wangfenjin commented on May 23, 2024

You could refer to the CI process https://github.com/wangfenjin/duckdb-rs/blob/main/.github/workflows/rust.yaml#L37-L60

The idea is download the binary and export the path, and then use the buildtime_bindgen feature will do codegen using the exported header file.
For your case is compile the lib and copy the binary to somewhere and export the path

from duckdb-rs.

wangfenjin avatar wangfenjin commented on May 23, 2024

Close as it's not in the scope of this project

from duckdb-rs.

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.