Giter Site home page Giter Site logo

ctp-sys's Introduction

  • 👋 Hi, I’m @daedalus2022
  • 👀 I’m interested in design-patterns
  • 🌱 I’m currently learning rust
  • 💞️ I’m looking to collaborate on dubbo-rust

ctp-sys's People

Contributors

daedalus2022 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ctp-sys's Issues

你是如何生成 vtable 的?

bindgen 自动生成的 bindgen_vtable 是空的,rust-lang/rust-bindgen#27

比如我生成的是

#[repr(C)]
pub struct YDQueryResult__bindgen_vtable(::std::os::raw::c_void);
#[repr(C)]
#[derive(Debug)]
pub struct YDQueryResult {
    pub vtable_: *const YDQueryResult__bindgen_vtable,
}

你是如何正常生成 CThostFtdcTraderApi__bindgen_vtable 的呢?

关于 build.rs 的复杂性

是因为 bindgen 无法很好地处理 c++ 的类吗?我也在写其它 c++ 库的绑定,是否有可能将 build.rs 里的这些逻辑抽出来变成一个库,或者整合进 bindgen 自身的功能,从而简化这脚本方便维护呢?

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.