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

Increase EntityId length to 64 bytes #162

Merged
merged 1 commit into from
May 25, 2024
Merged
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
7 changes: 3 additions & 4 deletions src/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ pub struct Entity {
pub id: EntityId,
}

/// The max size of the entity ID is 256 bits, but this is a soft limit so it
/// can be increased if necessary. Note that the underlying array length will
/// also have to be increased.
pub const ENTITY_ID_MAX_BYTES: usize = 32;
/// The max size of the entity ID is 512 bits, but this is a soft limit so it
/// can be increased if necessary.
pub const ENTITY_ID_MAX_BYTES: usize = 64;

/// Abstract representation of an entity ID.
#[derive(PartialEq, Eq, Hash, Clone, Debug, DeserializeFromStr, Serialize)]
Expand Down