Add pkg.rs to examples and codegen