# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "cpu6502"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A cycle-accurate 6502 CPU emulator library."
readme = "README.md"
keywords = [
    "cpu6502",
    "emulator",
    "cpu",
    "nes",
    "mos6502",
]
categories = [
    "emulators",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/CasiussDev/cpu6502/"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
decimal = []
decode_logic = [
    "dep:enum-primitive-derive",
    "dep:num-traits",
]
default = ["std"]
gen_write_cycle_query = [
    "std",
    "strum/derive",
]
logging = [
    "std",
    "dep:log",
    "dep:simplelog",
    "dep:disasm6502",
    "dep:arrayvec",
]
std = ["strum/std"]
undoc_opcodes = []

[lib]
name = "cpu6502"
path = "src/lib.rs"

[[bin]]
name = "gen_decode_switch"
path = "src/bin/gen_decode_switch.rs"

[[bin]]
name = "gen_write_cycle_query"
path = "src/bin/gen_write_cycle_query.rs"

[[test]]
name = "nes_test"
path = "tests/nes_test.rs"

[[test]]
name = "perf_test"
path = "tests/perf_test.rs"

[[test]]
name = "test_computer"
path = "tests/test_computer.rs"

[dependencies.arrayvec]
version = "0.7"
optional = true
default-features = false

[dependencies.bitflags]
version = "2.4"

[dependencies.disasm6502]
version = "0.2.2"
optional = true

[dependencies.enum-primitive-derive]
version = "0.3.0"
optional = true

[dependencies.log]
version = "0.4"
optional = true

[dependencies.num-traits]
version = "0.2"
optional = true
default-features = false

[dependencies.simplelog]
version = "0.12.0"
optional = true

[dependencies.strum]
version = "0.28"
features = ["derive"]
default-features = false

[dependencies.strum_macros]
version = "0.28"

[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
