Registry / other / sway-ast

sway-ast

JSON →
library0.70.3rscratesunverified

Sway's AST, providing the abstract syntax tree types for the Sway language compiler.

# Cargo.toml [dependencies] sway-ast = "0.70.3"
INSTALL
IMPORT
SIG · SWAY-AST
S
sway-ast
otherrustv0.70.3
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.

Expression
use sway_ast::Expression;

Creates a simple literal expression using the Sway AST types.

use sway_ast::Expression; fn main() { // Example: create a literal expression let expr = Expression::Literal(sway_ast::Literal::U64(42)); println!("Expression: {:?}", expr); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.70.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
sway-ast — cargo add sway-ast · libregistry