aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Maier <>2026-03-06 14:51:41 +0100
committerJonas Maier <>2026-03-06 14:51:41 +0100
commitf6736ab046e8e5f6eef9211bf9f72a3faa8c597c (patch)
treed149bff36f1fe46dd8f36f2276bc126636da8470
parent12d929265c0717725d467e539daebe40b4d1b154 (diff)
downloadpish-f6736ab046e8e5f6eef9211bf9f72a3faa8c597c.tar.gz
start of history
-rw-r--r--Cargo.lock57
-rw-r--r--Cargo.toml1
-rw-r--r--src/history.rs0
-rw-r--r--src/main.rs1
4 files changed, 59 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 927ff49..728966e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3,6 +3,22 @@
version = 4
[[package]]
+name = "cc"
+version = "1.2.56"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2"
+dependencies = [
+ "find-msvc-tools",
+ "shlex",
+]
+
+[[package]]
+name = "find-msvc-tools"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
+
+[[package]]
name = "libc"
version = "0.2.182"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -13,10 +29,51 @@ name = "pish"
version = "0.2.0"
dependencies = [
"libc",
+ "sqlite",
"termios",
]
[[package]]
+name = "pkg-config"
+version = "0.3.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
+
+[[package]]
+name = "shlex"
+version = "1.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
+
+[[package]]
+name = "sqlite"
+version = "0.37.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f66e9c01a11936154f3910dbba732c01f8b591543bc4d6672bddee79fd9c4783"
+dependencies = [
+ "sqlite3-sys",
+]
+
+[[package]]
+name = "sqlite3-src"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5b6d3c860886b0a33e69e421796a5f4a27f23597a182c2450f6d7ace5103120"
+dependencies = [
+ "cc",
+ "pkg-config",
+]
+
+[[package]]
+name = "sqlite3-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7781d97adc13a1d5081127a9ee29afad8427f3757bd984daf814d8265267039"
+dependencies = [
+ "sqlite3-src",
+]
+
+[[package]]
name = "termios"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index 8b69bb9..b9a7437 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,4 +7,5 @@ license-file = "LICENSE"
[dependencies]
libc = "0.2.182"
+sqlite = "0.37.0"
termios = "0.3"
diff --git a/src/history.rs b/src/history.rs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/history.rs
diff --git a/src/main.rs b/src/main.rs
index 7c51497..52fc234 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -17,6 +17,7 @@ pub mod raw;
pub mod reload;
pub mod run;
mod basedir;
+mod history;
use linebuf::LineBuf;
use raw::*;