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

refactor: create runtimes workspace #432

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ members = [
exclude = [
"e2e",
"examples",
"plugins",
"resources/aws-rds",
"resources/persist",
"resources/secrets",
"resources/shared-db"
"resources/shared-db",
"runtimes"
]
5 changes: 0 additions & 5 deletions plugins/Cargo.toml

This file was deleted.

13 changes: 0 additions & 13 deletions plugins/serenity/Makefile

This file was deleted.

6 changes: 6 additions & 0 deletions runtimes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[workspace]
members = [
"legacy",
"next",
"wasm"
]
16 changes: 16 additions & 0 deletions runtimes/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.PHONY: wasm next

all: wasm next

wasm:
cd wasm; cargo build --target wasm32-wasi
cp target/wasm32-wasi/debug/shuttle_serenity.wasm next/bot.wasm

test: wasm
cd next; cargo test -- --nocapture

next:
cd next; cargo build

legacy:
cd legacy; cargo build
2 changes: 1 addition & 1 deletion next/Cargo.toml → runtimes/legacy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "shuttle-next"
name = "shuttle-legacy"
version = "0.1.0"
edition = "2021"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion next/README.md → runtimes/legacy/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## shuttle-next runtime-wrapper
## shuttle-legacy

Load and run an .so library that implements `shuttle_service::Service`.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "shuttle-runtime"
name = "shuttle-next"
version = "0.1.0"
edition = "2021"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `shuttle-runtime`
# `shuttle-next`

## How to run

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.