Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite homeval to use just rust and no js #29

Open
wants to merge 142 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
a8cbabe
refactor: Start switch to pure rust
PotentialStyx Jun 21, 2023
e66729b
Merge branch 'remove-lazy-static'
PotentialStyx Jun 21, 2023
b1e4e34
refactor: Start implementing rust based services
PotentialStyx Jun 22, 2023
2761597
feat(services): Pure rust gcsfiles
PotentialStyx Jun 23, 2023
cf0ac27
feat(services): Pure rust presence implementation
PotentialStyx Jun 23, 2023
0c3e1da
feat(services): Pure rust ot implementation
PotentialStyx Jun 24, 2023
1196742
feat(services): Sync local file changes to homeval state
PotentialStyx Jun 26, 2023
e3bbedb
feat(services): Implement viewable history for ot service
PotentialStyx Jun 27, 2023
055a052
feat(services): Add stubs for null, open, and git
PotentialStyx Jun 27, 2023
7b9e015
feat(services): Pure rust snapshot implementation
PotentialStyx Jun 27, 2023
3cfea7f
build(deps): Update deps
PotentialStyx Jun 27, 2023
ec15d76
build: Temporarily disable all optional features by default
PotentialStyx Jun 27, 2023
f6b3c51
feat(services): Implement chat scrollback
PotentialStyx Jun 27, 2023
5682369
feat(services): Add placeholder for .env in db code
PotentialStyx Jun 27, 2023
842bc43
feat: lockless OT
PotentialStyx Oct 8, 2023
2822856
feat(services): implemented output service
PotentialStyx Oct 9, 2023
274fe4a
refactor: Remove unused js related code
PotentialStyx Oct 9, 2023
f5568a3
fix(services): Fix pty impl
PotentialStyx Oct 9, 2023
1ff4f52
feat(services): Implement shell service
PotentialStyx Oct 9, 2023
ba23e63
refactor(services): Remove useless code in gcsfiles
PotentialStyx Oct 9, 2023
cb611e2
feat(services): Platform specific default shell
PotentialStyx Oct 9, 2023
1d322ab
feat(replspace): Fix replspace implementation
PotentialStyx Oct 9, 2023
cb62722
feat(services): Implement git service
PotentialStyx Oct 9, 2023
a48656f
feat(services): Implement dotreplit service
PotentialStyx Oct 9, 2023
2ad2469
refactor: Make code follow clippy default lint rules
PotentialStyx Oct 10, 2023
127d839
feat: update and add a lot of stuff lol
PotentialStyx Jan 14, 2024
507fce3
build(deps):(deps): bump webpki from 0.22.0 to 0.22.4
dependabot[bot] Jan 14, 2024
3c97a9d
Merge pull request #69 from Goval-Community/dependabot/cargo/webpki-0…
dependabot[bot] Jan 14, 2024
bf98332
fix(dependabot): Fix config
PotentialStyx Jan 14, 2024
1af3ae9
build(deps): Update everything
PotentialStyx Jan 14, 2024
7e96aa6
build(deps): bump prost from 0.11.9 to 0.12.3
dependabot[bot] Jan 14, 2024
c49b275
Merge pull request #72 from Goval-Community/dependabot/cargo/prost-0.…
dependabot[bot] Jan 14, 2024
e6aa526
build(deps): Update prost fully
PotentialStyx Jan 14, 2024
86d9cdc
build(deps): Update toml
PotentialStyx Jan 14, 2024
64c4505
build(deps): Update hyper to 1.1
PotentialStyx Jan 14, 2024
ae7415e
ci(clippy): Enable clippy ci for all pushs & prs
PotentialStyx Jan 22, 2024
e236303
ci(clippy): Fix config
PotentialStyx Jan 22, 2024
5d8433f
ci(clippy): Make sure to install mold linker
PotentialStyx Jan 23, 2024
90cca0f
ci(clippy): Attempt for better error message
PotentialStyx Jan 23, 2024
c5ae268
ci(clippy): Install cranelift codegen and update rust
PotentialStyx Jan 23, 2024
166df81
ci(clippy): Install protoc
PotentialStyx Jan 23, 2024
937c8ca
ci(build): Add build action
PotentialStyx Jan 23, 2024
2fa8644
ci(build,clippy): Setup ci
PotentialStyx Jan 23, 2024
c21e4c1
build(deps): bump axum from 0.6.20 to 0.7.4
dependabot[bot] Jan 28, 2024
6279a1b
build(deps): bump notify-debouncer-full from 0.2.0 to 0.3.1
dependabot[bot] Jan 28, 2024
3700792
build(deps): bump h2 from 0.4.1 to 0.4.2
dependabot[bot] Jan 28, 2024
25fb11c
Merge pull request #78 from Goval-Community/dependabot/cargo/h2-0.4.2
dependabot[bot] Jan 28, 2024
458a981
Merge pull request #76 from Goval-Community/dependabot/cargo/notify-d…
dependabot[bot] Jan 28, 2024
4624918
build(deps): Finish axum update
PotentialStyx Jan 28, 2024
6cf313b
Merge branch 'pure-rust' into dependabot/cargo/axum-0.7.4
PotentialStyx Jan 28, 2024
0c6e13f
build(deps): bump axum from 0.6.20 to 0.7.4
PotentialStyx Jan 28, 2024
4d1ba8a
build(deps): bump all sea-orm package versions
PotentialStyx Jan 28, 2024
6bb5625
build(deps): bump serde from 1.0.195 to 1.0.196
dependabot[bot] Jan 28, 2024
2a9c519
Merge pull request #84 from Goval-Community/dependabot/cargo/serde-1.…
dependabot[bot] Jan 28, 2024
53af733
build(deps): bump serde_json from 1.0.111 to 1.0.112
dependabot[bot] Jan 28, 2024
1a715b1
ci(build): Target more oses when building
PotentialStyx Feb 3, 2024
6534842
ci(build,clippy): Update out of date actions
PotentialStyx Feb 3, 2024
bf6ae4e
ci(build,clippy): Authenticate protoc install
PotentialStyx Feb 3, 2024
66d8691
ci(build): Fix artifact naming
PotentialStyx Feb 3, 2024
ba3b35a
ci(build): Fix windows artifact name
PotentialStyx Feb 3, 2024
e7bd265
build(deps): bump serde_json from 1.0.112 to 1.0.113
dependabot[bot] Feb 3, 2024
4602ec7
Merge pull request #86 from Goval-Community/dependabot/cargo/serde_js…
dependabot[bot] Feb 3, 2024
e2d61d0
refactor: Switch to tracing for logs
PotentialStyx Feb 4, 2024
a133014
Merge branch 'pure-rust' into use-tracing
PotentialStyx Feb 4, 2024
d0ff67b
feat: add docker support
Feb 4, 2024
c527387
feat(docker): Add container metadata
PotentialStyx Feb 4, 2024
52d091d
ci(docker): Build docker image in CI
PotentialStyx Feb 4, 2024
b6458f3
ci(docker): Correctly tag container image
PotentialStyx Feb 4, 2024
15f4003
Merge branch 'ray/add-dockerfile' into pure-rust
PotentialStyx Feb 4, 2024
12b540d
build(deps): bump tokio from 1.35.1 to 1.36.0
dependabot[bot] Feb 5, 2024
84b9530
Merge pull request #94 from Goval-Community/dependabot/cargo/tokio-1.…
dependabot[bot] Feb 11, 2024
12b6e79
ci(docker): Move docker to it's own workflow
PotentialStyx Feb 18, 2024
5fe34e0
ci(build,clippy): Setup merge queue ci runs
PotentialStyx Feb 18, 2024
342974c
build(deps): bump hyper-util from 0.1.2 to 0.1.3
dependabot[bot] Feb 18, 2024
9d245f0
build(deps): bump chrono from 0.4.33 to 0.4.34
dependabot[bot] Feb 18, 2024
9ddbbfa
build(deps): bump toml from 0.8.8 to 0.8.10
dependabot[bot] Feb 18, 2024
9541d5a
build(deps): bump sea-orm-migration from 0.12.12 to 0.12.14
dependabot[bot] Feb 18, 2024
ebfef87
build(deps): bump sea-orm from 0.12.12 to 0.12.14
dependabot[bot] Feb 18, 2024
560fdc4
Merge pull request #91 from Goval-Community/dependabot/cargo/hyper-ut…
PotentialStyx Feb 18, 2024
9266654
Merge pull request #96 from Goval-Community/dependabot/cargo/chrono-0…
PotentialStyx Feb 18, 2024
5796995
Merge pull request #95 from Goval-Community/dependabot/cargo/toml-0.8.10
PotentialStyx Feb 18, 2024
1b96167
Merge pull request #92 from Goval-Community/dependabot/cargo/sea-orm-…
PotentialStyx Feb 18, 2024
41a62fe
Merge pull request #93 from Goval-Community/dependabot/cargo/sea-orm-…
PotentialStyx Feb 18, 2024
92c9812
ci: Fix config
PotentialStyx Feb 18, 2024
d5bfbcc
build(deps): bump mio from 0.8.10 to 0.8.11
dependabot[bot] Mar 4, 2024
e69b674
Merge pull request #105 from Goval-Community/dependabot/cargo/mio-0.8.11
PotentialStyx Mar 5, 2024
d6c25d5
build(deps): bump crc32fast from 1.3.2 to 1.4.0
dependabot[bot] Mar 5, 2024
9741385
build(deps): bump anyhow from 1.0.79 to 1.0.81
dependabot[bot] Mar 18, 2024
06a534c
build(deps): bump serde_json from 1.0.113 to 1.0.115
dependabot[bot] Apr 1, 2024
055b50e
build(deps): bump h2 from 0.4.2 to 0.4.4
dependabot[bot] Apr 5, 2024
16b4ab9
build(deps): bump whoami from 1.4.1 to 1.5.1
dependabot[bot] Apr 5, 2024
6243c8a
build(deps): bump chrono-tz from 0.8.5 to 0.9.0
dependabot[bot] Apr 8, 2024
00d56c0
feat(services): Implement fsevents
PotentialStyx Apr 11, 2024
4f24575
Merge branch 'pure-rust' into fs-events
PotentialStyx Apr 11, 2024
53cd23b
Merge pull request #111 from Goval-Community/fs-events
PotentialStyx Apr 11, 2024
7ec567f
docs: Update readme and remove all references to js
PotentialStyx Apr 13, 2024
afc1b81
Merge branch 'update-readme' into pure-rust
PotentialStyx Apr 13, 2024
f806799
refactor: Fix all clippy warnings
PotentialStyx Apr 13, 2024
93210fc
Merge pull request #110 from Goval-Community/dependabot/cargo/chrono-…
PotentialStyx Apr 13, 2024
4df42f2
Merge pull request #109 from Goval-Community/dependabot/cargo/whoami-…
PotentialStyx Apr 13, 2024
b2cb319
Merge pull request #108 from Goval-Community/dependabot/cargo/h2-0.4.4
PotentialStyx Apr 13, 2024
bbb0468
Merge pull request #107 from Goval-Community/dependabot/cargo/serde_j…
PotentialStyx Apr 13, 2024
84331ce
Merge pull request #106 from Goval-Community/dependabot/cargo/anyhow-…
PotentialStyx Apr 13, 2024
42dd051
build(deps): bump serde from 1.0.196 to 1.0.197
dependabot[bot] Apr 13, 2024
bd6c599
Merge pull request #102 from Goval-Community/dependabot/cargo/serde-1…
PotentialStyx Apr 13, 2024
539a26f
refactor: Use special new type for session ids instead of i32
PotentialStyx Apr 13, 2024
f68193d
refactor: Rename Session to SessionID
PotentialStyx Apr 14, 2024
266838b
fix(services): Fix pty implementation
PotentialStyx Apr 14, 2024
e42e133
refactor: Use special new type for channel ids instead of i32
PotentialStyx Apr 14, 2024
2563ada
build: Update rust nightly version
PotentialStyx Apr 14, 2024
85063aa
Merge pull request #100 from Goval-Community/dependabot/cargo/crc32fa…
PotentialStyx Apr 14, 2024
dcecd58
Merge pull request #114 from Goval-Community/general-cleanup
PotentialStyx Apr 14, 2024
d764b60
build(deps): bump toml from 0.8.10 to 0.8.12
dependabot[bot] Apr 15, 2024
6ef47ae
build(deps): bump axum from 0.7.4 to 0.7.5
dependabot[bot] Apr 15, 2024
f74d993
build(deps): bump prost from 0.12.3 to 0.12.4
dependabot[bot] Apr 15, 2024
62db57e
build(deps): bump async-trait from 0.1.77 to 0.1.80
dependabot[bot] Apr 15, 2024
3bd1b26
build(deps): bump chrono from 0.4.34 to 0.4.38
dependabot[bot] Apr 15, 2024
51c895b
refactor(server): Remove `LazyLock`'s from function arguments
PotentialStyx Apr 17, 2024
1af2d14
refactor(services): Rewrite Presence#detach to not make an unnecessar…
PotentialStyx Apr 17, 2024
6b60a6d
refactor(services,dotreplit): Use clone_from when converting the DotR…
PotentialStyx Apr 17, 2024
f4470b1
refactor(repldb): Avoid cloning entire hashmap and just use drain ins…
PotentialStyx Apr 17, 2024
fa3c42e
Merge pull request #119 from Goval-Community/dependabot/cargo/chrono-…
PotentialStyx Apr 17, 2024
1b18aa0
Merge pull request #117 from Goval-Community/dependabot/cargo/prost-0…
PotentialStyx Apr 17, 2024
934b0f8
Merge pull request #118 from Goval-Community/dependabot/cargo/async-t…
PotentialStyx Apr 17, 2024
024bcc6
Merge pull request #115 from Goval-Community/dependabot/cargo/toml-0.…
PotentialStyx Apr 17, 2024
9847bf0
Merge pull request #116 from Goval-Community/dependabot/cargo/axum-0.7.5
PotentialStyx Apr 17, 2024
3c84111
build(deps): bump rustls from 0.21.10 to 0.21.11
dependabot[bot] Apr 19, 2024
32cd4ab
Merge pull request #120 from Goval-Community/dependabot/cargo/rustls-…
PotentialStyx Apr 19, 2024
206ea8b
build(deps): Remove direct log dependency
PotentialStyx Apr 23, 2024
4f8a85f
refactor(server): Use clippy::pedantic lint config
PotentialStyx Apr 23, 2024
81ff082
refactor(services): Use clippy::pedantic lint config with some except…
PotentialStyx Apr 27, 2024
694dd09
refactor(services, server): Enable more clippy lints
PotentialStyx Apr 27, 2024
884f7f4
refactor(server): Remove most uses of `.unwrap()`
PotentialStyx Apr 27, 2024
8812f4f
Merge branch 'pure-rust' into refactor
PotentialStyx Apr 27, 2024
6ccd4ef
build: Update Cargo.lock
PotentialStyx Apr 27, 2024
f060083
Merge pull request #126 from Goval-Community/refactor
PotentialStyx Apr 27, 2024
35ce3ad
feat(services, goval-ident): Implement chat variant of `goval-ident` …
PotentialStyx Apr 28, 2024
02ead2b
Merge pull request #127 from Goval-Community/goval-ident
PotentialStyx Apr 28, 2024
72e2389
build(deps): bump base64 from 0.21.7 to 0.22.0
dependabot[bot] Apr 29, 2024
da1d904
Merge pull request #128 from Goval-Community/dependabot/cargo/base64-…
PotentialStyx Apr 29, 2024
644bbb4
fix(services): Fix fs update -> replit ot catchup
PotentialStyx May 18, 2024
666884c
refactor(services): Remove stubbed audio service
PotentialStyx May 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,8 @@ updates:
assignees:
- "PotentialStyx"
commit-message:
prefix: "build(deps):"
prefix: "build"
include: "scope"
labels:
- "cargo"
- "dependencies"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
assignees:
- "PotentialStyx"
commit-message:
prefix: "build(deps):"
include: "scope"
labels:
- "npm"
- "dependencies"
149 changes: 149 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"on":
{
"push": { "branches": ["main"] },
"pull_request": {},
"merge_group": {},
},
"name": "CI",
"permissions": { "security-events": "write" },
"jobs":
{
"enforce-clippy":
{
"name": "Upload Clippy Lints",
"runs-on": "ubuntu-latest",
"steps":
[
{
"name": "Checkout",
"uses": "actions/checkout@v4",
},
{
"name": "Install Rust",
"uses": "dtolnay/rust-toolchain@master",
"with":
{
"components": "clippy,rustc-codegen-cranelift",
"toolchain": "nightly-2024-04-10",
},
},
{
"name": "Install Mold Linker",
"uses": "rui314/setup-mold@v1",
},
{
"name": "Install Protoc",
"uses": "arduino/setup-protoc@v3",
"with":
{
"repo-token": "${{ secrets.GITHUB_TOKEN }}",
},
},
{
"name": "Cache",
"uses": "Swatinem/rust-cache@v2",
},
{
"name": "Install tools",
"run": "cargo install clippy-sarif sarif-fmt",
},
{
"name": "Generate SARIF",
"run":
"cargo clippy --all-features --message-format=json |
clippy-sarif | tee results.sarif | sarif-fmt",
},
{
"name": "Upload SARIF file",
"uses": "github/codeql-action/upload-sarif@v3",
"with": { "sarif_file": "results.sarif" },
},
],
},
"build":
{
"name": "Build",
"strategy":
{
"matrix":
{
"os":
[
"ubuntu-latest",
"windows-latest",
"macos-13",
"macos-14",
],
"include":
[
{
"os": "windows-latest",
"suffix": "windows-x86.exe",
},
{
"os": "ubuntu-latest",
"suffix": "linux-x86",
},
{
"os": "macos-13",
"suffix": "macos-x86",
},
{
"os": "macos-14",
"suffix": "macos-arm",
},
],
},
},

"runs-on": "${{ matrix.os }}",
"steps":
[
{
"name": "Checkout",
"uses": "actions/checkout@v4",
},
{
"name": "Install Rust",
"uses": "dtolnay/rust-toolchain@master",
"with":
{
"components": "clippy",
"toolchain": "nightly-2024-04-10",
},
},
{
"name": "Install Mold Linker",
"uses": "rui314/setup-mold@v1",
"if": "${{ runner.os == 'Linux'}}",
},
{
"name": "Install Protoc",
"uses": "arduino/setup-protoc@v3",
"with":
{
"repo-token": "${{ secrets.GITHUB_TOKEN }}",
},
},
{
"name": "Cache",
"uses": "Swatinem/rust-cache@v2",
},
{
"name": "Build Homeval",
"run": "cargo build --release --all-features",
},
{
"name": "Upload Artifact",
"uses": "actions/upload-artifact@v4",
"with":
{
"path": "${{ runner.os != 'Windows' && 'target/release/homeval' || 'target\\release\\homeval.exe' }}",
"name": "homeval-${{ matrix.suffix && matrix.suffix || format('{0}-{1}', runner.os, runner.arch) }}",
},
},
],
},
},
}
32 changes: 32 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"on": { "push": { "branches": ["pure-rust"] } },
"name": "Docker",
"permissions": { "packages": "write" },
"jobs":
{
"docker-build":
{
"name": "Build & Push Docker Container",
"runs-on": "ubuntu-latest",
"steps":
[
{
"name": "Checkout",
"uses": "actions/checkout@v4",
},
{
"name": "Build Image",
"run": "docker buildx build -t ghcr.io/goval-community/homeval:${{ github.sha }} .",
},
{
"name": "Log In to Registry",
"run": 'echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin',
},
{
"name": "Push Image",
"run": "docker push ghcr.io/goval-community/homeval:${{ github.sha }}",
},
],
},
},
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ site

flamegraph.svg
perf.data
perf.data.old
perf.data.old

data
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/homeval.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .replit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The command that runs the program. If the interpreter field is set, it will have priority and this run command will do nothing
run = { args = ["python3", "main.py"] }
run = { args = ["cat"] }

# The primary language of the repl. There can be others, though!
language = "python3"
Expand Down
Loading