Skip to content

Commit 3d80370

Browse files
authored
Import protocol crate from session-sharing-server repo. (#1)
This yanks the `session-sharing-protocol` crate from `https://github.com/warpdotdev/session-sharing-server` into this dedicated repository. The client compiles against this protocol, so when we open-source the client, we'll need to make the protocol code public too. We don't want to make the server code public, though, so they need to be in separate repos (hence this PR). Once this merges, I'll send out a pair of follow-up PRs to update the client repo to point at the crate here, and the server repo to remove the crate from there and instead point at it here.
1 parent 38461cd commit 3d80370

28 files changed

Lines changed: 3494 additions & 0 deletions

.github/dependabot.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "cargo"
7+
directory: "/"
8+
schedule:
9+
interval: "daily"
10+
reviewers:
11+
- "warpdotdev/tech-leads"
12+
# Only send security updates, not general version updates.
13+
open-pull-requests-limit: 0
14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: "daily"
18+
reviewers:
19+
- "warpdotdev/tech-leads"
20+
cooldown:
21+
# Don't update to any action release that is less than two weeks old.
22+
default-days: 14
23+
groups:
24+
# Group all non-major updates of official actions together - they're lower-risk.
25+
official-actions:
26+
applies-to: version-updates
27+
patterns:
28+
- "actions/*"
29+
update-types:
30+
- "minor"
31+
- "patch"
32+
# Group all non-major updates of Namespace actions together - they're lower-risk.
33+
namespace-actions:
34+
applies-to: version-updates
35+
patterns:
36+
- "namespacelabs/*"
37+
- "namespace-actions/*"
38+
update-types:
39+
- "minor"
40+
- "patch"

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
ci:
14+
name: CI
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
19+
- name: Setup SSH keys for private crates
20+
uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0
21+
with:
22+
ssh-private-key: ${{ secrets.WARP_MACHINE_USER_SSH_PRIVATE_KEY }}
23+
24+
- name: Run cargo fmt
25+
run: cargo fmt --check
26+
27+
- name: Run cargo clippy
28+
run: cargo clippy --all-targets --all-features -- -D warnings
29+
30+
- name: Install cargo nextest
31+
uses: taiki-e/install-action@055f5df8c3f65ea01cd41e9dc855becd88953486 # v2.75.18
32+
with:
33+
tool: nextest
34+
35+
- name: Run tests
36+
run: cargo nextest run --workspace --no-tests=warn

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/target
2+
3+
# IDE things
4+
.idea/*
5+
6+
# DS_STORE
7+
.DS_STORE

0 commit comments

Comments
 (0)