Cognite Rust SDK
Rust SDK to ensure excellent user experience for developers and data scientists working with the Cognite Data Fusion.
Documentation
Prerequisites
Install rust. See instructions here.
Set environment variables:
Supported features for API v1
Core
- Assets
- Events
- Files
- TimeSeries
- With protobuf support
- Sequences
IAM
- Groups
- SecurityCategories
- Sessions
Data Ingestion
- Extraction pipelines
- Raw
Data Organization
- Datasets
- Labels
- Relationships
Data Modeling
- Instances
- Spaces
- Views
- Containers
- Streams
- Records
Example
Cargo.toml:
[]
= { = "0.6.0" } # See crates.io for latest version.
= { = "1.23", = ["macros", "rt-multi-thread"] }
use *;
use ;
Using the builder pattern to set OIDC credentials:
use *;
Run examples
WASM
We verify that the SDK compiles for webassembly, with some limitations:
- The HTTP library we use does not support streams on wasm, so file uploads loads the entire file into memory before uploading.
- All futures are
!Send. This is becauseJsFuture, the future used to make HTTP requests through the browser, is!Send.
Contributing
See Contributing for details.