Registry / utility / codegen

codegen

JSON →
library0.3.0rscratesunverified

Library for generating Rust code programmatically.

# Cargo.toml [dependencies] codegen = "0.3.0"
INSTALL
IMPORT
SIG · CODEGEN
C
codegen
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Scope
✓ use codegen::Scope;

Generates a simple Rust function using codegen.

use codegen::Scope; let mut scope = Scope::new(); scope.new_fn("hello") .vis("pub") .line("println!(\"Hello, world!\");"); println!("{}", scope.to_string());
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
codegen — cargo add codegen · libregistry