All basic functions plus guide README to use

This commit is contained in:
Malte Schröder
2025-12-19 20:25:39 +01:00
parent db48f07b78
commit 397635d43e
12 changed files with 486 additions and 22 deletions

31
production_test_v2.log Normal file
View File

@@ -0,0 +1,31 @@
Compiling easy-nostr v0.1.0 (/home/malxte/Documents/Programming/Rust/Crates/easy-nostr)
warning: use of deprecated method `nostr_sdk::Timestamp::as_u64`: Use `as_secs` instead
--> src/bin/testall.rs:40:63
|
40 | let secret_code = format!("Test Run {}", Timestamp::now().as_u64());
| ^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: `easy-nostr` (bin "testall") generated 1 warning
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.40s
Running `target/debug/testall`
=== EasyNostr Production Test Suite ===
[INFO] Identity: npub1tfqs84ttgcw8z424dsrzzkchmee9s22hzpahxxxmyrg3z82zwmusmq4aga
[STEP 1] Connecting to Relays...
[OK] Connected.
[STEP 2] Following Self (for robust timeline testing)...
[OK] Followed self.
[STEP 3] Publishing Post...
[OK] Posted: note1p79vn2myyd29adw3dk0t0vuxk50ng0fkqk4yhhq34u085j4k65rqq40c0q
[STEP 4] verifying Timeline (expecting own post)...
[OK] Found our post in timeline after 2s!
[STEP 5] Testing Direct Messages...
[OK] Found DM after 2s!
=== Test Complete ===