doc: add license information for gen. files
auto merge of #12094 : adridu59/rust/licensing, r=brson

Closes #12069.

cc @brson