couchbase-sys 0.3.0

Rust bindings to the libcouchbase C Couchbase SDK.
1
2
3
4
5
6
7
8
9
10
11
12
binding:
	@echo Generating binding for version "${VERSION}"
	wget -N https://github.com/couchbase/libcouchbase/archive/${VERSION}.tar.gz
	tar -xvzpf ${VERSION}.tar.gz
	echo "#include \"libcouchbase-${VERSION}/include/libcouchbase/couchbase.h\"\n\
		#include \"libcouchbase-${VERSION}/include/libcouchbase/n1ql.h\"\n\
		#include \"libcouchbase-${VERSION}/include/libcouchbase/cbft.h\"\n\
		#include \"libcouchbase-${VERSION}/include/libcouchbase/views.h\"" > headers-${VERSION}.h 	
	bindgen --verbose --no-unstable-rust --no-doc-comments headers-${VERSION}.h -- -I libcouchbase-${VERSION}/include/libcouchbase/ > src/bindings-${VERSION}.rs
	rm -rf ${VERSION}.tar.gz
	rm -rf libcouchbase-${VERSION}/
	rm headers-${VERSION}.h