yandex-cloud

Crates.ioyandex-cloud
lib.rsyandex-cloud
version2023.9.4
sourcesrc
created_at2023-04-25 00:18:24.063485
updated_at2023-09-12 12:47:10.399172
descriptionGenerated gRPC clients for the Yandex Cloud API
homepagehttps://cs.tvl.fyi/depot/-/tree/ops/yandex-cloud-rs
repositoryhttps://code.tvl.fyi/depot.git:/ops/yandex-cloud-rs.git
max_upload_size
id848040
size6,695,464
android-activity-publishers (github:rust-mobile:android-activity-publishers)

documentation

README

yandex-cloud-rs

Client library for Yandex Cloud gRPC APIs, as published in their GitHub repository.

Please see the online documentation for user-facing information, this README is intended for library developers.

The source code of the library lives in the TVL repository.


In order to build this library, the gRPC API definitions need to be fetched from GitHub. By default this is done by Nix (see default.nix), which then injects the location of the API definitions through the YANDEX_CLOUD_PROTOS environment variable.

The actual code generation happens through the calls in build.rs.

Releases of this library are done from dirty trees, meaning that the version on crates.io should already contain all the generated code. In order to do this, after bumping the version in Cargo.toml and the API commit in default.nix, the following release procedure should be used:

# Get rid of all generated source files
find src | grep '.rs$' | grep -v '^src/lib.rs$' | xargs rm

# Get rid of all old artefacts
cargo clean

# Verify that a clean build works as intended
cargo build

# Verify that all documentation builds, and verify that it looks fine:
#
# - Is the version correct (current date)?
# - Are all the services included (i.e. not an accidental empty build)?
cargo doc --open

# If everything looks fine, release:
cargo publish --allow-dirty
Commit count: 0

cargo fmt