read-only 0.1.1

Read-only field exposure and safe composition helpers via proc macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
warning: variable does not need to be mutable
  --> tests/macro/fail/write_external.rs:13:9
   |
13 |     let mut demo = m::Demo { value: 1 };
   |         ----^^^^
   |         |
   |         help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default

error[E0594]: cannot assign to data in dereference of `Demo`
  --> tests/macro/fail/write_external.rs:14:5
   |
14 |     demo.value += 1;
   |     ^^^^^^^^^^^^^^^ cannot assign
   |
   = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Demo`