Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
daschl committed Jan 2, 2017
0 parents commit 62861e4
Show file tree
Hide file tree
Showing 503 changed files with 153,866 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
target/
Cargo.lock
.idea/
*.iml
2 changes: 2 additions & 0 deletions Cargo.toml
@@ -0,0 +1,2 @@
[workspace]
members = ["couchbase", "couchbase-sys"]
2 changes: 2 additions & 0 deletions README.md
@@ -0,0 +1,2 @@
# Couchbase Rust SDK
A brand new `libcouchbase` binding for [Rust](https://www.rust-lang.org).
10 changes: 10 additions & 0 deletions couchbase-sys/Cargo.toml
@@ -0,0 +1,10 @@
[package]
name = "couchbase-sys"
version = "0.1.0"
authors = ["Michael Nitschinger <michael@nitschinger.at>"]
build = "build.rs"

[dependencies]

[build-dependencies]
libbindgen = "0.1"
16 changes: 16 additions & 0 deletions couchbase-sys/build.rs
@@ -0,0 +1,16 @@
extern crate libbindgen;

use std::env;
use std::path::Path;

fn main() {
let out_dir = env::var("OUT_DIR").unwrap();

let _ = libbindgen::builder()
.header("libcouchbase-2.7.0/include/libcouchbase/couchbase.h")
//.use_core()
.no_unstable_rust()
.generate()
.unwrap()
.write_to_file(Path::new(&out_dir).join("bindings.rs"));
}
132 changes: 132 additions & 0 deletions couchbase-sys/libcouchbase-2.7.0/.gitignore
@@ -0,0 +1,132 @@
# Keep the entries sorted to reduce the risk for a merge conflict
*.[ao]
*.dirstamp
*.dll
*.dobj
*.exe
*.exp
*.gcda
*.gcno
*.gcov
*.l[aon]
*.lib
*.obj
*.orig
*.pdb
*.profile
*.sln
*.swo
*.swp
*.vcxproj
*.vcxproj.filters
*.vcxproj.user
*~
.DS_Store
._*
.deps/
.libs/
/INSTALL
/Makefile
/Makefile.in
/aclocal.m4
/autom4te.cache
/check-all*
/config.cache
/config.log
/config.status
/config/compile
/config/config.guess
/config/config.sub
/config/depcomp
/config/install-sh
/config/ltmain.sh
/config/missing
/config/mkinstalldirs
/config/plugin.ac
/config/test-driver
/configure
/debug/sizes
/example/db/db
/example/db/vb
/example/debug/debug
/example/instancepool/instancepool
/example/libeventdirect/eventloop
/example/mcc/mcc
/example/minimal/minimal
/example/observe/observe
/example/syncmode/syncmode
/example/yajl/couchview
filelist.mk
/gtest-1.*
/include/libcouchbase/configuration.h
/libcouchbase*.changes
/libcouchbase*.deb
/libcouchbase*.dsc
/libcouchbase*.rpm
/libcouchbase*.tar.gz
/libtool
/config/m4/libtool.m4
/config/m4/ltoptions.m4
/config/m4/ltsugar.m4
/config/m4/ltversion.m4
/config/m4/lt~obsolete.m4
/config/m4/version.m4
/src/config.h
/src/config.h.in
/src/probes.h
/src/stamp-h1
/test-suite.log
/tests/*-test
/tests/*.log
/tests/*.trs
/tests/CouchbaseMock.jar
/tests/check-all
/tests/htparse-tests
/tests/nonio-tests
/tests/unit-tests
/tests/mc-tests
/tests/sock-tests
/tests/rdb-tests
/tools/cbc
/tools/cbc-pillowfight
/tools/cbc_debug.ilk
/vc100.idb
CMakeCache.txt
CMakeFiles/
CTestTestfile.cmake
Project.opensdf
Project.sdf
Project.suo
VERSION
build/
cbc-pillowfight.dir/
cbc.dir/
cmake_install.cmake
core*
couchbase.dir/
debug/cbc-pillowfight.ilk
debug/cbc.ilk
debug/libcouchbase.idb
debug/libcouchbase.ilk
ipch/
lcbutils.dir/
libcouchbase.opensdf
libcouchbase.sdf
libcouchbase.suo
unit-tests.dir/
win32/Debug/
MANIFEST
doc/public
doc/internal

# Symlinks
m4
configure.ac
Makefile.am
packaging/distinfo/distinfo.cmake
packaging/distinfo/MANIFEST
*.tlog
*.nupkg
*.suo
tests/LOCAL
inst
19 changes: 19 additions & 0 deletions couchbase-sys/libcouchbase-2.7.0/.travis.yml
@@ -0,0 +1,19 @@
language: c

compiler:
- clang
- gcc

before_install:
- sudo apt-get -y install python-software-properties
- sudo add-apt-repository -y ppa:mnunberg/cmake
- sudo apt-get update
- sudo apt-get -y install libgtest-dev libssl-dev libev-dev libevent-dev cmake

script: |
./cmake/configure --enable-debug --disable-couchbasemock && make && make alltests && cd build && \
(ctest -V || (cat check*.log; false))
notifications:
email:
- mark.nunberg@couchbase.com

0 comments on commit 62861e4

Please sign in to comment.