#![allow(clippy::mutable_key_type)]
#![recursion_limit = "256"]
#![doc(html_favicon_url = "https://surrealdb.s3.amazonaws.com/favicon.png")]
#![doc(html_logo_url = "https://surrealdb.s3.amazonaws.com/icon.png")]
#[macro_use]
extern crate surrealdb_collections;
#[macro_use]
extern crate tracing;
#[macro_use]
extern crate common;
#[macro_use]
mod mac;
#[cfg(test)]
mod sql_test;
#[cfg(test)]
mod sql_to_sql_test;
#[doc(hidden)]
pub mod buc;
mod cf;
#[doc(hidden)]
pub mod doc;
mod exe;
#[cfg(test)]
mod fmt_roundtrip_test;
mod fnc;
pub(crate) mod key;
mod legacy;
mod lq;
#[cfg(feature = "surrealism")]
mod surrealism;
mod sys;
pub mod api;
pub(crate) use surrealdb_catalog as catalog;
pub(crate) use surrealdb_sql as sql;
mod config;
pub mod ctx;
pub mod dbs;
pub mod env;
pub mod err;
pub mod exec;
pub(crate) use surrealdb_expr::expr;
#[cfg(feature = "gql")]
pub mod gql;
#[cfg(feature = "graphql")]
pub mod graphql;
#[cfg(any(feature = "http", feature = "jwks"))]
mod http;
pub mod iam;
pub mod idx;
pub mod kvs;
pub mod mem;
#[cfg(all(not(target_family = "wasm"), any(feature = "http", feature = "jwks")))]
mod net;
#[cfg(all(target_family = "wasm", feature = "http"))]
mod net {
use crate::dbs::capabilities::NetTarget;
pub(crate) fn resolve_net_target(
_target: &NetTarget,
) -> Result<Vec<NetTarget>, std::io::Error> {
Ok(Vec::new())
}
}
pub mod obs;
pub mod observe;
pub mod options;
pub mod rpc;
pub mod syn;
pub(crate) use surrealdb_expr::val;
pub(crate) mod types {
pub use surrealdb_types::{
Action as PublicAction, Array as PublicArray, Bytes as PublicBytes,
Datetime as PublicDatetime, Duration as PublicDuration, File as PublicFile,
Geometry as PublicGeometry, Notification as PublicNotification, Number as PublicNumber,
Object as PublicObject, Range as PublicRange, RecordId as PublicRecordId,
RecordIdKey as PublicRecordIdKey, RecordIdKeyRange as PublicRecordIdKeyRange,
Set as PublicSet, SurrealValue, Table as PublicTable, Uuid as PublicUuid,
Value as PublicValue, Variables as PublicVariables,
};
}
#[doc(hidden)]
pub use surrealdb_collections::VecMap;
pub mod channel {
pub use async_channel::{Receiver, Sender, bounded, unbounded};
}
#[derive(Default)]
pub struct CommunityComposer();