Giter VIP home page Giter VIP logo

cassandra-sys-rs's Introduction

Build Status Current Version License: MPL-2.0

cassandra-sys

This is the source for the cassandra-sys crate on crates.io.

It is mostly an autogenerated wrapper around the DataStax C++ CQL driver.

It also includes a fairly complete set of examples equivalent to the ones in the C++ repository.

It is quite possible to use this crate directly from your rust code, but it will mean littering unsafe all over the place.

Instead it is recommended that you use the safe wrapper of this ffi interface. https://crates.io/crates/cassandra

Compilation

By default, /usr/lib, /usr/local/lib64, and /usr/local/lib are added to the linker search path.

A semicolon separated list of additional directories to add to the linker search path may be specified through the CASSANDRA_SYS_LIB_PATH environment variable.

cassandra-sys-rs's People

Contributors

davideagen avatar jshook avatar rustyrazorblade avatar tupshin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

cassandra-sys-rs's Issues

Build errors: double and omitted imports

A portion of the build log is below (see https://travis-ci.org/BenjaminGill-Metaswitch/cassandra-sys-rs/builds/182538987). Nothing overly complicated - I'll have a go at fixing it up in the next few days.

@tupshin - what are you using to autogenerate this? Given the build warnings, it's possible that there's a bug that needs to be reported in the autogenerator, given that it doesn't seem to be producing valid Rust.

error[E0252]: a type named `cass_bool_t` has already been imported in this module
  --> src/lib.rs:32:9
   |
20 | pub use cassandra::cass_bool_t;
   |         ---------------------- previous import of `cass_bool_t` here
...
32 | pub use cassandra::*;
   |         ^^^^^^^^^^^^^ already imported

error[E0252]: a type named `CassError` has already been imported in this module
  --> src/lib.rs:32:9
   |
23 | pub use cassandra::CassError;
   |         -------------------- previous import of `CassError` here
...
32 | pub use cassandra::*;
   |         ^^^^^^^^^^^^^ already imported

error[E0432]: unresolved import `self::CassError_::*`
  --> src/error.rs:83:13
   |
83 |         use self::CassError_::*;
   |             ^^^^^^^^^^^^^^^^^^^^ Could not find `CassError_` in `error`

error[E0425]: unresolved name `CASS_ERROR_LIB_UNEXPECTED_RESPONSE`
  --> src/error.rs:97:55
   |
97 |                 Err(ErrorKind::LIB_REQUEST_QUEUE_FULL(CASS_ERROR_LIB_UNEXPECTED_RESPONSE).into())
   |                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved name

error[E0425]: unresolved name `CASS_ERROR_SERVER_WRITE_FAILURE`
   --> src/error.rs:200:52
    |
200 |                 Err(ErrorKind::SERVER_SYNTAX_ERROR(CASS_ERROR_SERVER_WRITE_FAILURE).into())
    |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved name

Transfer ownership of crate to new maintainer

Hi,

I have forked this project to https://github.com/Metaswitch/cassandra-sys-rs and intend to maintain it there. If you no longer intend to maintain this project, please could you contact me and/or Alex Crichton to arrange a transfer of the cassandra and cassandra-sys crates to myself? I would like to avoid forking on crates.io, so that we don't leave the stale crates in place to trip people up in future.

To anyone else who is interested - my maintained fork is available on crates.io at cassandra-cpp-sys.

Thanks,

--KW 8-)

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.