Skip to content

Commit 292491d

Browse files
committed
move flatbuffer schema/code to separate crate
1 parent 6fa76a2 commit 292491d

File tree

15 files changed

+84
-11
lines changed

15 files changed

+84
-11
lines changed

rust/cubeshared/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
/.idea
3+
.vscode

rust/cubeshared/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# ChangeLog
2+

rust/cubeshared/Cargo.lock

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/cubeshared/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "cubeshared"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
flatbuffers = "23.1.21"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
cd ./src/codegen || exit 1
4+
flatc --rust http_message.fbs
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[toolchain]
2+
#channel = "stable"
3+
channel = "nightly-2024-07-15"
4+
components = ["rustfmt", "clippy"]
5+
profile = "minimal"

rust/cubeshared/rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
imports_granularity = "Crate"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[allow(unused_imports)]
12
mod http_message_generated;
23

34
pub use http_message_generated::*;

0 commit comments

Comments
 (0)