Skip to content

Commit dad3534

Browse files
authored
Merge pull request #1747 from polywrap/add-rust-plugin-template
feat: add rust plugin template
2 parents 16a3952 + 26b50f2 commit dad3534

31 files changed

Lines changed: 3203 additions & 39 deletions

.github/workflows/ci-javascript.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,13 @@ jobs:
214214
mv wrappers packages/test-cases/cases
215215
216216
- name: Test cli:unit
217-
run: yarn test:cli:unit
217+
run: yarn test:unit
218+
working-directory: ./packages/cli
218219

219220
- name: Test cli:e2e:p1
220-
run: yarn test:cli:e2e:p1
221+
run: yarn test:e2e:p1
222+
working-directory: ./packages/cli
221223

222224
- name: Test cli:e2e:p2
223-
run: yarn test:cli:e2e:p2
225+
run: yarn test:e2e:p2
226+
working-directory: ./packages/cli

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Polywrap Origin (0.10.3)
2+
## Features
3+
**`polywrap` CLI:**
4+
* [PR-1747](https://github.com/polywrap/toolchain/pull/1747) **Add Rust & Python plugin template projects to CLI's `create` command**
5+
* The `create` command now supports `plugin/rust` and `plugin/python` project types.
6+
27
## Bugs
38
**`@polywrap/schema-bind`:**
49
* [PR-1734](https://github.com/polywrap/toolchain/pull/1734) **Update `plugin/python` Bindings**

packages/cli/src/commands/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const urlStr = intlMsg.commands_create_options_t_url();
2929
export const supportedLangs = {
3030
wasm: ["assemblyscript", "rust", "interface"] as const,
3131
app: ["typescript"] as const,
32-
plugin: ["typescript"] as const,
32+
plugin: ["typescript", "rust", "python"] as const,
3333
};
3434

3535
export type ProjectType = keyof typeof supportedLangs;
File renamed without changes.

packages/templates/app/typescript/polywrap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ project:
33
name: Sample
44
type: app/typescript
55
source:
6-
schema: ./schema.graphql
6+
schema: ./polywrap.graphql
File renamed without changes.

packages/templates/plugin/python/polywrap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ project:
33
name: Sample
44
type: plugin/python
55
source:
6-
schema: ./schema.graphql
7-
module: ./sample/__init__.py
6+
schema: ./polywrap.graphql
7+
module: ./sample/__init__.py
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "template_plugin_rs"
3+
version = "0.1.0"
4+
license = "MIT"
5+
description = "Polywrap Rust Plugin Template"
6+
edition = "2021"
7+
8+
include = [
9+
"src/wrap/*",
10+
"src/lib.rs"
11+
]
12+
13+
[dependencies]
14+
polywrap_core = { version = "0.1.6-beta.1" }
15+
polywrap_plugin = { version = "0.1.6-beta.1" }
16+
polywrap_msgpack = { version = "0.1.6-beta.1" }
17+
wrap_manifest_schemas = { version = "0.1.6-beta.1" }
18+
serde = {version = "1.0.145", features = ["derive"]}
19+
20+
[dev-dependencies]
21+
polywrap_client = { version = "~0.1.6-beta.1" }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "templates-plugin-rust",
3+
"private": true,
4+
"dependencies": {
5+
"polywrap": "~0.10.2"
6+
}
7+
}
File renamed without changes.

0 commit comments

Comments
 (0)