ara_core/lib.rs
1//! `ara-core`: the shared core of the ARA viewer runtime.
2//!
3//! This crate holds all parsing, normalization, binding resolution, and DAG
4//! layout for the ARA viewer. It is compiled to both native targets (used by
5//! `ara-cli`) and `wasm32-unknown-unknown` (used by the browser client), so it
6//! is the single source of truth that keeps the server and client from
7//! drifting.
8//!
9//! This is a skeleton reservation release; real functionality lands in a later
10//! version. See <https://github.com/EYH0602/bara>.
11
12/// Returns the version of `ara-core`, taken from the crate manifest.
13pub fn version() -> &'static str {
14 env!("CARGO_PKG_VERSION")
15}
16
17#[cfg(test)]
18mod tests {
19 use super::*;
20
21 #[test]
22 fn version_is_reported() {
23 assert_eq!(version(), env!("CARGO_PKG_VERSION"));
24 }
25}