Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • R rust-card10
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Astro
  • rust-card10
  • Issues
  • #9
Closed
Open
Created Aug 28, 2019 by lilpep@lilpepContributor

Pregenerate C bindings

I tried to compile this both on Linux and on macOS and both times I hit by issues by rust-bindgen.

In order to somehow ease the experience, wouldn't it be better to use pre-generate the bindings offline? I know that rust-bindgen recommends to invoke it as part of build.rs script. However, I believe they recommend it for the default case, when the target is not known and of course definitions can change.

In the case rust-card10 (I assume) the target is pretty much fixed and in theory it should be fine to just pregenerate the bindings.

Edited Aug 28, 2019 by lilpep
Assignee
Assign to
Time tracking