Skip to content

Commit

Permalink
Merge pure-rust and mixed templates
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 24, 2021
1 parent 8ce6a0c commit bee5780
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 131 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
[placeholders.mixed_layout]
type = "bool"
prompt = "Use mixed Rust/Python project layout?"
default = false

[placeholders.binding]
type = "string"
prompt = "What binding to use?"
choices = ["pyo3", "rust-cpython", "cffi", "bin"]
default = "pyo3"

[conditional.'mixed_layout != true']
ignore = [ "{{crate_name}}/" ]

[conditional.'binding != "bin"']
ignore = [ "src/main.rs" ]

Expand Down
5 changes: 0 additions & 5 deletions templates/mixed/cargo-generate.toml

This file was deleted.

72 changes: 0 additions & 72 deletions templates/pure-rust/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions templates/pure-rust/Cargo.toml

This file was deleted.

17 changes: 0 additions & 17 deletions templates/pure-rust/pyproject.toml

This file was deleted.

17 changes: 0 additions & 17 deletions templates/pure-rust/src/lib.rs

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bee5780

Please sign in to comment.