Initial commit.

This commit is contained in:
Nolan Darilek 2025-04-07 12:17:09 -05:00
commit 1bc79510f2
37 changed files with 6757 additions and 0 deletions

7
server/Cargo.toml Normal file
View file

@ -0,0 +1,7 @@
[package]
name = "server"
version = "0.1.0"
edition = "2021"
[dependencies]
dioxus = { workspace = true, features = ["fullstack"] }

18
server/src/lib.rs Normal file
View file

@ -0,0 +1,18 @@
//! This crate contains all shared fullstack server functions.
use dioxus::{logger::tracing::debug, prelude::*};
/// Echo the user input on the server.
#[server(Echo)]
pub async fn echo(input: String) -> Result<String, ServerFnError> {
Ok(input)
}
#[server]
pub async fn test_fn() -> Result<(), ServerFnError> {
debug!("Here");
#[cfg(feature = "server")]
{
debug!("This is only on the server.");
}
Ok(())
}