slinky 0.5.0

Linker script generator for decompilation and modding projects
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-FileCopyrightText: © 2024-2026 decompals */
/* SPDX-License-Identifier: MIT */

use std::collections::HashSet;

use serde::Deserialize;

#[derive(Debug, Clone, PartialEq, Eq, Default, Deserialize)]
#[serde(deny_unknown_fields)]
#[serde(untagged)]
#[non_exhaustive]
pub enum KeepSections {
    #[default]
    #[serde(skip)]
    Absent,
    All(bool),
    WhichOnes(HashSet<String>),
}