Skip to main content

ic_dbms_api/
lib.rs

1#![crate_name = "ic_dbms_api"]
2#![crate_type = "lib"]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4#![deny(clippy::print_stdout)]
5#![deny(clippy::print_stderr)]
6
7//! # IC DBMS API
8//!
9//! IC-specific API types for ic-dbms-canister.
10//!
11//! This crate re-exports all generic types from [`wasm_dbms_api`] and adds
12//! IC-specific types such as [`Principal`](crate::prelude::Principal) and
13//! canister init arguments.
14//!
15//! Import all useful types and traits via the prelude:
16//!
17//! ```rust
18//! use ic_dbms_api::prelude::*;
19//! ```
20//!
21//! ## Feature flags
22//!
23//! | name  | description                                      | default |
24//! | ----- | ------------------------------------------------ | ------- |
25//! | `sql` | Re-export the SQL API types from `wasm-dbms-api`. |         |
26
27#![doc(html_playground_url = "https://play.rust-lang.org")]
28#![doc(
29    html_favicon_url = "https://raw.githubusercontent.com/veeso/wasm-dbms/main/assets/images/cargo/logo-128.png"
30)]
31#![doc(
32    html_logo_url = "https://raw.githubusercontent.com/veeso/wasm-dbms/main/assets/images/cargo/logo-512.png"
33)]
34
35// Makes the crate accessible as `ic_dbms_api` in macros.
36extern crate self as ic_dbms_api;
37
38// Re-export generic modules from wasm-dbms-api for path compatibility.
39pub use wasm_dbms_api::{dbms, memory, utils};
40
41mod acl;
42mod error;
43mod init;
44pub mod prelude;
45mod principal;
46mod select;
47#[cfg(test)]
48mod tests;