-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part of #2516 ### What This PR introduces the seeds of the C and C++ SDK. It's all a hack right now, and only tested on Mac, but I'd rather merge many small PRs than build this in isolation over a long time. A new crate `rerun_c` is introduced, which implements the C SDK (over FFI). The C SDK consists of a single header, `rerun.h`, with no dependencies except on `rerun_c`. The C++ SDK consists of a single header, `rerun.hpp`, which depends on: * Arrow C++ * `rerun.h` (the C SDK) * `rerun_c` (the Rust crate) The C SDK can create recording streams and log data to them using the arrow IPC format. The C++ SDK adds a few helper function for generating some test data and converting it to the Arrow IPC format. ### Testing it * Install CMake * Start rerun with `cargo rerun` * Run `crates/rerun_c/example_cpp/build_and_run.sh` You should see three points in a 3D space view. Those points come from C++! ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2594) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/2594) - [Docs preview](https://rerun.io/preview/pr%3Aemilk%2Fc-sdk/docs) - [Examples preview](https://rerun.io/preview/pr%3Aemilk%2Fc-sdk/examples) --------- Co-authored-by: Clement Rey <[email protected]>
- Loading branch information
Showing
43 changed files
with
931 additions
and
59 deletions.
There are no files selected for viewing
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,20 @@ | ||
BasedOnStyle: Google | ||
|
||
# Make it slightly more similar to Rust. | ||
# Based loosly on https://gist.github.com/YodaEmbedding/c2c77dc693d11f3734d78489f9a6eea4 | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: Empty | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: true | ||
BinPackArguments: false | ||
ColumnLimit: 100 | ||
ContinuationIndentWidth: 4 | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: true | ||
InsertTrailingCommas: Wrapped | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: All | ||
PointerAlignment: Left | ||
SpacesBeforeTrailingComments: 1 |
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.