Skip to content

Commit

Permalink
refactor: create runtimes workspace (#432)
Browse files Browse the repository at this point in the history
* refactor: rename plugins to runtimes

* refactor: drop serenity folder

* refactor: rename runtime to shuttle-next

* refactor: prepare shuttle-legacy runtime
  • Loading branch information
chesedo authored Oct 26, 2022
1 parent f7e09b6 commit f6e1766
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 24 deletions.
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.

0 comments on commit f6e1766

Please sign in to comment.