https://github.com/itsfarseen/diesel-repro
https://github.com/itsfarseen/diesel-repro
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsfarseen/diesel-repro
- Owner: itsfarseen
- Created: 2020-11-09T06:20:13.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-09T06:27:44.000Z (over 5 years ago)
- Last Synced: 2025-03-08T21:11:22.951Z (over 1 year ago)
- Language: Rust
- Size: 62.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Code
```rust
#[macro_use]
extern crate diesel;
struct Foo;
table! {
use diesel::sql_types::*;
use super::Foo;
test_table {
id -> Integer,
foobar -> Foo,
}
}
fn main() {
println!("Hello, world!");
}
```
### Problem
`table!` macro doesn't copy imports section to generated code.
[cargo expand output](expanded.rs)
### Screenshot of error message
