diff --git a/.gitignore b/.gitignore index 12b3a99..0e36d5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,21 @@ +# Rust +# Generated by Cargo +# will have compiled files and executables +debug/ +target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb + +# NodeJS + # Output out diff --git a/gui/Cargo.toml b/gui/Cargo.toml new file mode 100644 index 0000000..1a15883 --- /dev/null +++ b/gui/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "gui" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/gui/src/main.rs b/gui/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/gui/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/shell.nix b/shell.nix index 6b825f1..b354c84 100644 --- a/shell.nix +++ b/shell.nix @@ -1,7 +1,18 @@ { pkgs ? import { }, }: pkgs.mkShell { - buildInputs = [ pkgs.nodejs pkgs.openssl pkgs.postgresql pkgs.lsof ]; + buildInputs = with pkgs; [ + # gui/ + cargo + rustc + + # api/ + nodejs + openssl + postgresql + lsof + ]; + shellHook = '' export PRISMA_QUERY_ENGINE_BINARY=${pkgs.prisma-engines}/bin/query-engine export PRISMA_QUERY_ENGINE_LIBRARY=${pkgs.prisma-engines}/lib/libquery_engine.node