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

Initial port of SlippiDirectCodes to Rust #18

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ debug = true
panic = "abort"

[workspace.dependencies]
time = { version = "0.3.20", default-features = false, features = ["std", "local-offset"] }
time = { version = "0.3.20", default-features = false, features = ["formatting", "parsing", "local-offset", "macros", "serde", "std"] }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1" }
serde_repr = { version = "0.1" }
Expand Down
2 changes: 1 addition & 1 deletion exi/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#[derive(Debug)]
pub struct FilePathsConfig {
pub iso: String,
pub user_json: String,
pub user_config_folder: String,
}

/// Source control semver related parameters.
Expand Down
2 changes: 1 addition & 1 deletion exi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl SlippiEXIDevice {

let user_manager = UserManager::new(
http_client.clone(),
config.paths.user_json.clone().into(),
config.paths.user_config_folder.clone().into(),
config.scm.slippi_semver.clone(),
);

Expand Down
6 changes: 6 additions & 0 deletions ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ fn main() {
..Default::default()
};

let warning = "/* Warning: this file is autogenerated by cbindgen. Don't modify this manually. */";

let config = cbindgen::Config {
autogen_warning: Some(warning.into()),
cpp_compat: true,
enumeration: enum_config,
language: cbindgen::Language::C,
pragma_once: true,
..Default::default()
};

Expand Down
Loading
Loading