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

Add example of c calling rust #74

Merged
merged 3 commits into from
Mar 7, 2018

Conversation

mfarrugi
Copy link
Collaborator

Addresses #55.

@mfarrugi
Copy link
Collaborator Author

Is the buildkite presubmit intended to not be publicly visible (with an account)?

@acmcarther
Copy link
Collaborator

I think that's a design shortcoming. The detail page there lands on an administrative page. FWICT, you can see the build results without logging in.

Copy link
Collaborator

@acmcarther acmcarther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should have a more principled way of organizing these examples? For example, I'd expect to see the "call C from rust" example in here as well. What do you think about moving the matrix example into this directory (as "rust_calling_c") in this PR?

srcs = ["main.c"],
deps = [":wrapper"]
)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Repo style is no extra newline (this file and rest)

@@ -0,0 +1,20 @@
load("@//rust:rust.bzl", "rust_library", "rust_test", "rust_binary")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Other examples have a visibility defined:

package(default_visibility = ["//visibility:public"])

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we weaken the rest of the examples' visibilities?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not excited about anyone depending on this or other examples

@mfarrugi
Copy link
Collaborator Author

I didn't move the matrix example because I had already made changes to it in #61, I can follow suit in that pr

@mfarrugi mfarrugi force-pushed the marco-c-calling-rust-example branch from fd61799 to 8cbf0c5 Compare March 3, 2018 17:39
@mfarrugi
Copy link
Collaborator Author

mfarrugi commented Mar 3, 2018

Updated #61 to include "rust_calling_c" rename as well.

@mfarrugi
Copy link
Collaborator Author

mfarrugi commented Mar 7, 2018

@acmcarther Anything else for this one?

@acmcarther acmcarther dismissed their stale review March 7, 2018 03:33

Changes made.

@acmcarther
Copy link
Collaborator

LGTM, merging!

@acmcarther acmcarther merged commit cebb2a9 into bazelbuild:master Mar 7, 2018
@mfarrugi mfarrugi deleted the marco-c-calling-rust-example branch October 19, 2020 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants