[package] name = "megadrive-rust" version = "0.1.0" edition = "2021" # 1.86: the expansion sockets hold a slot or port device as a bus device (trait upcasting). rust-version = "1.86" description = "A Rust Mega Drive / Genesis board transcribed from, and held in lockstep with, megadrive-python" license = "MIT" repository = "https://github.com/alewman/megadrive-rust" publish = false [lib] name = "megadrive_rust" [dependencies] # The family's cores, pinned by commit (README, the first table). m68000-rust = { git = "https://github.com/alewman/m68000-rust", rev = "8a5bbb70b4cdfd6f876e0b3ba8300150f7a3d490" } z80-rust = { git = "https://github.com/alewman/z80-rust", rev = "0dbafe1d0d91c1ff85f4c8e79a32f7373efd28cc" } # The sound chips: the restarted cores of 2026-11-13, written from documents (their # Python references' docs/restart.md). Paths until the board pins their remotes. ym2612-rust = { package = "ym2612-rust", path = "../ym2612-rust", features = ["serde"] } sn76489-rust = { package = "sn76489-rust", path = "../sn76489-rust", features = ["serde"] } # Virtua Racing's DSP. A path until ssp1601-python and this core have a remote. ssp1601-rust = { path = "../ssp1601-rust" } flate2 = "1" # Save states (src/state.rs): the board's structs derive serde; bincode writes them, as # famicom-rust's do. "rc" for the renderer's shared palettes. serde = { version = "1", features = ["derive", "rc"] } serde-big-array = "0.5" bincode = "1.3" sha1_smol = "1" # The window (md-play), only with the frontend feature: SDL2, as the reference's # pygame-ce. unsafe_textures drops the textures' borrow of their creator. sdl2 = { version = "0.38", optional = true, features = ["unsafe_textures"] } [features] frontend = ["dep:sdl2"] [[bin]] name = "md-play" required-features = ["frontend"] [profile.release] debug = 1