Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't inline recursive datatypes in Rust backend #2760

Merged
merged 2 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/re_types/source_hash.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is a sha256 hash for all direct and indirect dependencies of this crate's build script.
# It can be safely removed at anytime to force the build script to run again.
# Check out build.rs to see how it's computed.
e45f620a5a7e37189161bd67ebaa7b111fa0569a315fb28bd960dd0e564b1149
9c75fa33055b75b1c29e08cddae47be88c686d3a20a97bcd584dfa664bc1c479
1,849 changes: 44 additions & 1,805 deletions crates/re_types/src/components/fuzzy.rs

Large diffs are not rendered by default.

178 changes: 2 additions & 176 deletions crates/re_types/src/components/transform3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,187 +54,13 @@ impl crate::Loggable for Transform3D {
},
Field {
name: "TranslationAndMat3x3".to_owned(),
data_type: DataType::Struct(vec![
Field {
name: "translation".to_owned(),
data_type: DataType::FixedSizeList(
Box::new(Field {
name: "item".to_owned(),
data_type: DataType::Float32,
is_nullable: false,
metadata: [].into(),
}),
3usize,
),
is_nullable: true,
metadata: [].into(),
},
Field {
name: "matrix".to_owned(),
data_type: DataType::FixedSizeList(
Box::new(Field {
name: "item".to_owned(),
data_type: DataType::Float32,
is_nullable: false,
metadata: [].into(),
}),
9usize,
),
is_nullable: true,
metadata: [].into(),
},
Field {
name: "from_parent".to_owned(),
data_type: DataType::Boolean,
is_nullable: false,
metadata: [].into(),
},
]),
data_type: <crate::datatypes::TranslationAndMat3x3>::to_arrow_datatype(),
is_nullable: false,
metadata: [].into(),
},
Field {
name: "TranslationRotationScale".to_owned(),
data_type: DataType::Struct(vec![
Field {
name: "translation".to_owned(),
data_type: DataType::FixedSizeList(
Box::new(Field {
name: "item".to_owned(),
data_type: DataType::Float32,
is_nullable: false,
metadata: [].into(),
}),
3usize,
),
is_nullable: true,
metadata: [].into(),
},
Field {
name: "rotation".to_owned(),
data_type: DataType::Union(
vec![
Field {
name: "_null_markers".to_owned(),
data_type: DataType::Null,
is_nullable: true,
metadata: [].into(),
},
Field {
name: "Quaternion".to_owned(),
data_type: DataType::FixedSizeList(
Box::new(Field {
name: "item".to_owned(),
data_type: DataType::Float32,
is_nullable: false,
metadata: [].into(),
}),
4usize,
),
is_nullable: false,
metadata: [].into(),
},
Field {
name: "AxisAngle".to_owned(),
data_type: DataType::Struct(vec![
Field {
name: "axis".to_owned(),
data_type: DataType::FixedSizeList(
Box::new(Field {
name: "item".to_owned(),
data_type: DataType::Float32,
is_nullable: false,
metadata: [].into(),
}),
3usize,
),
is_nullable: false,
metadata: [].into(),
},
Field {
name: "angle".to_owned(),
data_type: DataType::Union(
vec![
Field {
name: "_null_markers".to_owned(),
data_type: DataType::Null,
is_nullable: true,
metadata: [].into(),
},
Field {
name: "Radians".to_owned(),
data_type: DataType::Float32,
is_nullable: false,
metadata: [].into(),
},
Field {
name: "Degrees".to_owned(),
data_type: DataType::Float32,
is_nullable: false,
metadata: [].into(),
},
],
Some(vec![0i32, 1i32, 2i32]),
UnionMode::Dense,
),
is_nullable: false,
metadata: [].into(),
},
]),
is_nullable: false,
metadata: [].into(),
},
],
Some(vec![0i32, 1i32, 2i32]),
UnionMode::Dense,
),
is_nullable: true,
metadata: [].into(),
},
Field {
name: "scale".to_owned(),
data_type: DataType::Union(
vec![
Field {
name: "_null_markers".to_owned(),
data_type: DataType::Null,
is_nullable: true,
metadata: [].into(),
},
Field {
name: "ThreeD".to_owned(),
data_type: DataType::FixedSizeList(
Box::new(Field {
name: "item".to_owned(),
data_type: DataType::Float32,
is_nullable: false,
metadata: [].into(),
}),
3usize,
),
is_nullable: false,
metadata: [].into(),
},
Field {
name: "Uniform".to_owned(),
data_type: DataType::Float32,
is_nullable: false,
metadata: [].into(),
},
],
Some(vec![0i32, 1i32, 2i32]),
UnionMode::Dense,
),
is_nullable: true,
metadata: [].into(),
},
Field {
name: "from_parent".to_owned(),
data_type: DataType::Boolean,
is_nullable: false,
metadata: [].into(),
},
]),
data_type: <crate::datatypes::TranslationRotationScale3D>::to_arrow_datatype(),
is_nullable: false,
metadata: [].into(),
},
Expand Down
Loading