kxsystems / kxkdb Goto Github PK
View Code? Open in Web Editor NEWKdb+ interface for the Rust programming language
Home Page: https://code.kx.com/q/interfaces
Kdb+ interface for the Rust programming language
Home Page: https://code.kx.com/q/interfaces
Hi there,
There is prior art in using Rust as a dynamic library entry point for encoding/decoding to avro here. This is fine but the implementation is specific to avro. A better approach would be to implement the serde traits for the Q types in kxkdb and then any formats that serde supports would be supported. I am open to doing this work but due to the orphan rule it would have to be done in this crate. Are the maintainers of kxkdb open to pull requests for this kind of work?
Thanks,
Chris
Hi,
There is no software license file present. Since this project was forked from a project that was licensed with Apache 2.0, can you please restore that license and put it in the top level directory?
Are all changes from the parent kdbplus also licensed as Apache 2.0?
Rusty
Recreation
docker run -it --rm -v/tmp/rust/kxkdb:/src -w /src rust cargo test
root@1380ef2dce5a:/src# cargo test
Compiling ipc_examples v0.0.1 (/src/ipc_examples)
error[E0432]: unresolved import `async_trait`
--> ipc_examples/examples/acceptor_auth.rs:8:5
|
8 | use async_trait::async_trait;
| ^^^^^^^^^^^ use of undeclared crate or module `async_trait`
error: cannot determine resolution for the attribute macro `async_trait`
--> ipc_examples/examples/acceptor_auth.rs:11:3
|
11 | #[async_trait]
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error[E0706]: functions in traits cannot be declared `async`
--> ipc_examples/examples/acceptor_auth.rs:13:5
|
13 | async fn authorize(&mut self, credential: &str) -> Result<()> {
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| `async` because of this
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
error[E0195]: lifetime parameters or bounds on method `authorize` do not match the trait declaration
--> ipc_examples/examples/acceptor_auth.rs:13:23
|
13 | async fn authorize(&mut self, credential: &str) -> Result<()> {
| ^ lifetimes do not match method in trait
Some errors have detailed explanations: E0195, E0432, E0706.
For more information about an error, try `rustc --explain E0195`.
Tried to use it verbatim, no error raised, response type is 101h
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.