What OS are you using to install rustgpt on? I am having trouble on both Ubuntu and MacOS getting this up and running.
For example on Ubuntu 22.0.4:
:~/rustgpt$ just dev
./tailwindcss -i input.css -o assets/output.css --watch=always
cargo watch -w src -w templates -w tailwind.config.js -w input.css -x run
[Running 'cargo run']
warning: unreachable pattern
--> src/ai/stream.rs:161:13
|
161 | _ => (),
| ^
|
= note: #[warn(unreachable_patterns)]
on by default
warning: unused import: Row
--> src/data/repository.rs:4:12
|
4 | use sqlx::{Row, Sqlite, Transaction};
| ^^^
|
= note: #[warn(unused_imports)]
on by default
warning: function internal_error
is never used
--> src/main.rs:126:4
|
126 | fn internal_error(err: E) -> (StatusCode, String)
| ^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)]
on by default
warning: variant DatabaseError
is never constructed
--> src/router/app/auth.rs:31:5
|
29 | pub enum LogInError {
| ---------- variant in this enum
30 | InvalidCredentials,
31 | DatabaseError(String),
| ^^^^^^^^^^^^^
|
= note: LogInError
has a derived impl for the trait Debug
, but this is intentionally ignored during dead code analysis
warning: rustgpt
(bin "rustgpt") generated 4 warnings
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Running target/debug/rustgpt
thread 'main' panicked at src/main.rs:42:48:
called Result::unwrap()
on an Err
value: EnvVar(NotPresent)
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
[Finished running. Exit status: 101]
Sorry for asking a n00b question. My strengths are more with golang where we don't seem to have these kind of issues.