Skip to content

Commit 264935d

Browse files
author
Michael Ward
committed
[Rust] lib.rs will be generated with "#![forbid(unsafe_code)]"
1 parent e6134ff commit 264935d

File tree

1 file changed

+1
-0
lines changed
  • sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust

1 file changed

+1
-0
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/LibRsDef.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ void generate() throws IOException
7676
{
7777
try (Writer libRs = outputManager.createOutput("lib"))
7878
{
79+
indent(libRs, 0, "#![forbid(unsafe_code)]\n");
7980
indent(libRs, 0, "#![allow(clippy::upper_case_acronyms)]\n");
8081
indent(libRs, 0, "#![allow(non_camel_case_types)]\n");
8182
indent(libRs, 0, "use core::{convert::TryInto};\n\n");

0 commit comments

Comments
 (0)