Skip to content

Commit 6195eff

Browse files
committed
feat(pbxproj): skip printing objects
1 parent c93e7c0 commit 6195eff

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "xcodeproj"
3-
version = "0.2.8"
3+
version = "0.2.9"
44
edition = "2021"
55
description = "xcodeproj reader and parser."
66
license = "MIT OR Apache-2.0"

src/pbxproj/mod.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::{
1414
use tap::Pipe;
1515

1616
/// `Main` Representation of project.pbxproj file
17-
#[derive(Default, Debug, derive_new::new, derive_deref_rs::Deref)]
17+
#[derive(Default, derive_new::new, derive_deref_rs::Deref)]
1818
pub struct PBXRootObject {
1919
/// archiveVersion
2020
archive_version: u8,
@@ -29,6 +29,17 @@ pub struct PBXRootObject {
2929
root_object_reference: String,
3030
}
3131

32+
impl std::fmt::Debug for PBXRootObject {
33+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
34+
f.debug_struct("PBXRootObject")
35+
.field("archive_version", &self.archive_version)
36+
.field("object_version", &self.object_version)
37+
.field("classes", &self.classes)
38+
.field("root_object_reference", &self.root_object_reference)
39+
.finish()
40+
}
41+
}
42+
3243
impl PBXRootObject {
3344
/// Get the pbxproject's archive version.
3445
#[must_use]

0 commit comments

Comments
 (0)