-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C Api and Rust bindings #44
Conversation
- minor refactoring
- added missing include - added clang-format flag AllowShortFunctionsOnASingleLine: Inline - added disabled build/include_subdir for cpplint, as we use #include "utf8.h"
rust/Cargo.toml
Outdated
@@ -0,0 +1,14 @@ | |||
[package] | |||
name = "keyvi" | |||
version = "0.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the semantics behind that version number. It would still make sense to have a unified version number.
rust/Cargo.toml
Outdated
|
||
[build-dependencies] | ||
bindgen = "0.30.0" | ||
cmake = "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you say something like > 2.8.12 (that's the minimum right now)?
rust/Cargo.lock
Outdated
@@ -0,0 +1,549 @@ | |||
[root] | |||
name = "keyvi" | |||
version = "0.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version needs to be set twice (it is set in the ".toml" file below as well)?
rust/Cargo.lock
Outdated
"serde_json 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", | ||
] | ||
|
||
[[package]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these dependencies? Quite a lot, is that correct?
Look great! I wonder a bit about:
I would like to merge the index branch first in case of merge trouble. You introduced some style fixes - which are good - but if we merge this first I might have to reformat all files. |
- changed package version - removed Cargo.lock from VCS
Agree, I'll do the review next week, so we can first merge Index and then Rust and make the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* - fixed rust package build: workaround via symbolic links, so cargo will bundle keyvi source folder along with CMakeLists.txt into .crate file * - building only keyvi_c library, this reduces build time from 61s -> 7s
@hendrikmuhs This PR is same as cliqz-oss/keyvi#242 with addressed review comments. Also Rust package was renamed from
rskeyvi
tokeyvi
.