run_what/lib.rs
1//! # run-what
2//!
3//! HTML-first web framework powered by Rust.
4//!
5//! **This crate is under active development.**
6//!
7//! ## Features (coming soon)
8//!
9//! - ColdFusion-style template variables (`#variable#`)
10//! - Custom HTML components with slots
11//! - File-based routing
12//! - Built-in CRUD operations
13//! - Session management
14//! - JWT authentication
15//!
16//! Visit <https://github.com/tedigo/what> for more information.
17
18/// Returns the current version of run-what
19pub fn version() -> &'static str {
20 env!("CARGO_PKG_VERSION")
21}
22
23#[cfg(test)]
24mod tests {
25 use super::*;
26
27 #[test]
28 fn test_version() {
29 assert_eq!(version(), "0.0.1");
30 }
31}