-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(cargo): Add FFI placeholder library
- Loading branch information
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
|
||
members = [ | ||
"rekordcrate", | ||
"rekordcrate-ffi", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[package] | ||
name = "rekordcrate-ffi" | ||
version = "0.1.1" | ||
authors = ["Jan Holthuis <[email protected]>"] | ||
description = "C bindings for rekordcrate" | ||
readme = "README.md" | ||
repository = "https://github.com/Holzhaus/rekordcrate" | ||
license = "MPL-2.0" | ||
keywords = ["rekordbox", "dj", "export", "database", "parser"] | ||
categories = ["parser-implementations"] | ||
edition = "2021" | ||
exclude = [".*"] | ||
|
||
[dependencies] | ||
rekordcrate = { version = "0.1.1", path = "../rekordcrate" } | ||
|
||
[lib] | ||
crate_type = ["cdylib"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) 2022 Jan Holthuis <[email protected]> | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy | ||
// of the MPL was not distributed with this file, You can obtain one at | ||
// http://mozilla.org/MPL/2.0/. | ||
// | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
//! Bindings for using rekordcrate from C code. | ||
#![cfg_attr(not(debug_assertions), deny(warnings))] | ||
#![deny(rust_2018_idioms)] | ||
#![deny(rust_2021_compatibility)] | ||
#![deny(missing_debug_implementations)] | ||
#![deny(missing_docs)] | ||
#![deny(rustdoc::broken_intra_doc_links)] | ||
#![deny(clippy::all)] | ||
#![deny(clippy::explicit_deref_methods)] | ||
#![deny(clippy::explicit_into_iter_loop)] | ||
#![deny(clippy::explicit_iter_loop)] | ||
#![deny(clippy::must_use_candidate)] | ||
#![cfg_attr(not(test), deny(clippy::panic_in_result_fn))] | ||
#![cfg_attr(not(debug_assertions), deny(clippy::used_underscore_binding))] | ||
|
||
/// This is just a test function. | ||
#[no_mangle] | ||
pub extern "C" fn rekordcrate_hello() { | ||
println!("Hello World!"); | ||
} |