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_readonly_subset.rs:24:9
   |
24 |     let mut demo = m::Demo::new(1, 2);
   |         ----^^^^
   |         |
   |         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_readonly_subset.rs:25:5
   |
25 |     demo.visible += 1;
   |     ^^^^^^^^^^^^^^^^^ cannot assign
   |
   = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Demo`