9 releases (breaking)

0.34.0 Mar 18, 2024
0.33.0 Feb 8, 2024
0.32.0 Jan 18, 2024
0.31.0 Nov 27, 2023
0.28.0 Sep 21, 2023

#530 in Magic Beans

Download history 1968/week @ 2024-01-06 657/week @ 2024-01-13 2462/week @ 2024-01-20 3038/week @ 2024-01-27 3628/week @ 2024-02-03 4580/week @ 2024-02-10 4419/week @ 2024-02-17 3029/week @ 2024-02-24 3552/week @ 2024-03-02 3961/week @ 2024-03-09 3190/week @ 2024-03-16 3125/week @ 2024-03-23 3776/week @ 2024-03-30 3394/week @ 2024-04-06 3864/week @ 2024-04-13 3297/week @ 2024-04-20

14,650 downloads per month
Used in 24 crates (via ic-agent)

Apache-2.0

56KB
1K SLoC

DFINITY's Rust Agent Repository

GitHub Workflow Status

Contributing

Please follow the guidelines in the CONTRIBUTING.md document.

Building

We use cargo to build this repo. Make sure you have rust stable installed. To build the repo:

cargo build

Testing

There are two suites of tests that can be executed from this repo; the regular cargo tests and the ic-ref tests. In order to run the ic-ref tests, you will need a running local reference server. If you do not have one, those tests will be ignored.

Release

To release, increase the version number in all crates and run cargo build to update the lock file.

Packages

This repo has multiple packages in its Cargo workspace.

Package Name Links Description
ic-agent README DOC The ic-agent is a library to talk directly to the Replica.
ic-utils README DOC A library of utilities for managing calls and canisters.
icx README A command line utility to use the agent. Not meant to be published, only available in this repo for tests.
ref-tests A package that only exists to run the ic-ref tests with the ic-agent as the connection.

lib.rs:

Types related to the HTTP transport for the Internet Computer. Primarily used through ic-agent.

Dependencies

~1.6–2.5MB
~52K SLoC