wallet_core/lib.rs
1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
5pub fn rust_greeting(to: String) -> String {
6 format!("Hello World, {}!", to)
7}
8
9uniffi_macros::include_scaffolding!("WalletCore");
10
11#[cfg(test)]
12mod tests {
13 use super::*;
14
15 #[test]
16 fn test_rust_greeting() {
17 assert_eq!(rust_greeting("Rust".to_string()), "Hello World, Rust!".to_string());
18 }
19}