Skip to content

Commit

Permalink
Add spk rust crate that is importable from python
Browse files Browse the repository at this point in the history
This crate will serve as the place to migrate code into rust
that needs to interact directly with the spfs api. Ideally,
this interface can be kept simple, avoiding the need to define
complex custom types to cross the boundary
  • Loading branch information
rydrman committed Mar 2, 2021
1 parent 2d80012 commit 9d819fa
Show file tree
Hide file tree
Showing 9 changed files with 2,746 additions and 99 deletions.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[net]
git-fetch-with-cli = true
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ coverage.xml
.benchmarks
.coverage
.coverage.*
*.so

# spdev
/build/
Expand All @@ -27,4 +28,7 @@ dist/
# END spdev:Shell
# GENERATED FOR spdev:Pipenv
.venv/
# END spdev:Pipenv
# END spdev:Pipenv
# GENERATED FOR spdev:Rust
target/
# END spdev:Rust
10 changes: 7 additions & 3 deletions .spdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ toolchain:
SENTRY_ENVIRONMENT: development
PATH: $SPDEV_ENV/bin:$PATH
- kind: Pipenv
- kind: Rust

components:
- kind: PythonPackage
Expand All @@ -23,15 +24,18 @@ components:
deploy:
rez.enabled: false

- kind: RustCrate
name: spk

- kind: HugoDocs
name: docs
location: docs

- kind: RPMPackage
name: rpm
spec_file: spk.spec

# bootstrap packages that need to go out with any new features
spec_file:
spk.spec
# bootstrap packages that need to go out with any new features
- kind: SPKPackage
name: spk-stdfs
version: 1.0.0
Expand Down
Loading

0 comments on commit 9d819fa

Please sign in to comment.