Skip to content

Commit

Permalink
feat(template): set publish = false
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Jun 27, 2023
1 parent 440a83d commit 3d861c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/use_extendr.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ use_extendr <- function(path = ".",

edition <- match.arg(edition, several.ok = FALSE)
cargo_toml_content <- to_toml(
package = list(name = crate_name, version = "0.1.0", edition = edition),
package = list(name = crate_name, publish = FALSE, version = "0.1.0", edition = edition),
lib = list(`crate-type` = array("staticlib", 1), name = lib_name),
dependencies = list(`extendr-api` = "*")
)
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/_snaps/use_extendr.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
Output
[package]
name = 'testpkg'
publish = false
version = '0.1.0'
edition = '2021'
Expand Down

0 comments on commit 3d861c5

Please sign in to comment.