epfl-lara / rust-stainless

An experimental Rust frontend for Stainless
Apache License 2.0
6 stars 2 forks source link

Allow local modules and imports #152

Closed yannbolliger closed 3 years ago

yannbolliger commented 3 years ago

Closes #146.

All use statements are now allowed but a warning is emitted for "unknown" ones. E.g. the stainless crate, crate-local module imports and some things from std are ignored, all others get the following warning:

warning: Unknown use statement. Stainless likely cannot deal with the imported items.
 --> src/file.rs:1:1
  |
1 | use std::collection::HashMap;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^