{"id":71199,"library":"sway-ast","title":"Sway AST","description":"Sway's AST, providing the abstract syntax tree types for the Sway language compiler.","status":"active","version":"0.70.3","language":"rust","source_language":null,"source_url":"https://github.com/FuelLabs/sway","tags":["sway","ast","compiler","blockchain"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nsway-ast = \"0.70.3\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add sway-ast","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Expression","correct":"use sway_ast::Expression;"}],"quickstart":{"code":"use sway_ast::Expression;\n\nfn main() {\n    // Example: create a literal expression\n    let expr = Expression::Literal(sway_ast::Literal::U64(42));\n    println!(\"Expression: {:?}\", expr);\n}","lang":"rust","description":"Creates a simple literal expression using the Sway AST types."},"warnings":[],"env_vars":null,"search_vec":"'abstract':8 'ast':2,5,18 'blockchain':20 'compil':16,19 'languag':15 'provid':6 'sway':1,3,14,17 'syntax':9 'tree':10 'type':11","created_at":"2026-06-17T18:24:00.034985+00:00","updated_at":"2026-06-17T18:24:00.034985+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://fuel.network/","github":"https://github.com/FuelLabs/sway","docs":"https://docs.rs/sway-ast/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}