Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/faern/rustscript
/ to_cargo_toml_format
Method
to_cargo_toml_format
src/scriptbuilder.rs:30–32 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
28
}
29
30
pub fn to_cargo_toml_format(&self) -> String {
31
format!(
"{} = \"
{}\
""
, self.package_name, self.version)
32
}
33
34
pub fn to_code_format(&self) -> String {
35
let mut code = String::new();
Callers
1
create_toml
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected