# SModel for Rust

**URL:** https://d.strumenta.community/t/smodel-for-rust/1899
**Category:** Compilers
**Created:** [May 4, 2024, 11:52am UTC](https://d.strumenta.community/t/smodel-for-rust/1899 "2024-05-04T11:52:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![matheus](https://d.strumenta.community/user_avatar/d.strumenta.community/matheus/32/990_2.png) [@matheus](https://d.strumenta.community/u/matheus)
#### Post date: [May 4, 2024, 11:52am UTC](https://d.strumenta.community/t/smodel-for-rust/1899/1 "2024-05-04T11:52:47Z")

</div>

I’ve recently built the [SModel](https://github.com/hydroper/rust.smodel) crate for Rust for defining the semantic “thingy” in a compiler codebase using inheritance and dynamic dispatch, with additional `super.m(...)` calls and `#[inheritdoc]` attributes.

So, for anyone on Rust, you may want to use it to structure your hierarchy of things.

Here’s an [example](https://github.com/hydroper/rust.smodel/wiki/Auto-generated-code) of what it generates.
