casey / casey/x-serialization-format

Magic numbers

Open
#129 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Allow embedding magic numbers. Should look like:

```rust
// string data
struct MagicString;
// binary data
struct MagicNumber;

// serializes as `FOO!`
// can only be deserialized from buffer containing `FOO!`
struct Foo {
magic: MagicString<"FOO!">,
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by locating the Rust serialization and deserialization implementation, then determine how const-generic string and byte-array markers would fit; done means the shown declarations serialize and reject buffers with incorrect magic data.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.