MCPcopy Index your code
hub / github.com/bonifaido/rust-zookeeper

github.com/bonifaido/rust-zookeeper @0.8.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.8.0 ↗ · + Follow
254 symbols 583 edges 30 files 42 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

rust-zookeeper

Build Status Coverage Status Version License

Zookeeper client written 100% in Rust

This library is intended to be equivalent with the official (low-level) ZooKeeper client which ships with the official ZK distribution.

I have plans to implement recipes and more complex Curator like logic as well, but that takes a lot of time, so pull requests are more than welcome! At the moment only PathChildrenCache is implemented.

Usage

Put this in your Cargo.toml:

[dependencies]
zookeeper = "0.6"

And this in your crate root:

extern crate zookeeper;

Examples

Check the examples directory

Feature and Bug Handling

Also if you find a bug or would like to see a feature implemented please raise an issue or send a pull-request.

Documentation

Documentation is available on the gh-pages branch.

Build and develop

cd zk-test-cluster
mvn clean package
cd ..
cargo test

Contributing

All contributions are welcome! If you need some inspiration, please take a look at the currently open issues.

Extension points exported contracts — how you extend this code

Watcher (Interface)
The interface for handling events when a `Watch` triggers. [6 implementers]
src/watch.rs
ReadFrom (Interface)
(no doc) [12 implementers]
src/proto.rs
ZooKeeperExt (Interface)
Extended ZooKeeper operations that are not needed for the "core." [1 implementers]
src/zookeeper_ext.rs
MapNonBlock (Interface)
A helper trait to provide the map_non_block function on Results. [1 implementers]
src/try_io.rs
WriteTo (Interface)
(no doc) [16 implementers]
src/proto.rs
TryRead (Interface)
(no doc) [1 implementers]
src/try_io.rs
StringReader (Interface)
(no doc) [1 implementers]
src/proto.rs
TryWrite (Interface)
(no doc) [1 implementers]
src/try_io.rs

Core symbols most depended-on inside this repo

create
called by 16
src/zookeeper.rs
xid
called by 13
src/zookeeper.rs
request
called by 13
src/zookeeper.rs
path
called by 13
src/zookeeper.rs
ensure_path
called by 11
src/zookeeper_ext.rs
len
called by 11
src/listeners.rs
set_data
called by 8
src/zookeeper.rs
close
called by 7
src/zookeeper.rs

Shape

Method 132
Function 53
Class 44
Enum 15
Interface 10

Languages

Rust99%
Kotlin1%

Modules by API surface

src/proto.rs34 symbols
src/zookeeper.rs31 symbols
src/recipes/leader.rs25 symbols
src/io.rs22 symbols
src/recipes/cache.rs16 symbols
src/acl.rs15 symbols
src/watch.rs13 symbols
src/listeners.rs11 symbols
src/consts.rs10 symbols
src/try_io.rs9 symbols
src/recipes/queue.rs9 symbols
tests/test.rs6 symbols

For agents

$ claude mcp add rust-zookeeper \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page