# Produces [workspace] with no children
to_toml(workspace = NULL)
to_toml(patch.crates_io = list(`extendr-api` = list(git = "git-ref")))
# Single-element arrays are distinguished from scalars
# using explicitly set `dim`
to_toml(lib = list(`crate-type` = array("cdylib", 1)))
Run the code above in your browser using DataLab