{"action":"created","issue":{"url":"https://api.github.com/repos/acmcarther/cargo-raze/issues/27","repository_url":"https://api.github.com/repos/acmcarther/cargo-raze","labels_url":"https://api.github.com/repos/acmcarther/cargo-raze/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/acmcarther/cargo-raze/issues/27/comments","events_url":"https://api.github.com/repos/acmcarther/cargo-raze/issues/27/events","html_url":"https://github.com/acmcarther/cargo-raze/issues/27","id":295944121,"number":27,"title":"Rust bazel rules","user":{"login":"SirVer","id":140115,"avatar_url":"https://avatars0.githubusercontent.com/u/140115?v=4","gravatar_id":"","url":"https://api.github.com/users/SirVer","html_url":"https://github.com/SirVer","followers_url":"https://api.github.com/users/SirVer/followers","following_url":"https://api.github.com/users/SirVer/following{/other_user}","gists_url":"https://api.github.com/users/SirVer/gists{/gist_id}","starred_url":"https://api.github.com/users/SirVer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirVer/subscriptions","organizations_url":"https://api.github.com/users/SirVer/orgs","repos_url":"https://api.github.com/users/SirVer/repos","events_url":"https://api.github.com/users/SirVer/events{/privacy}","received_events_url":"https://api.github.com/users/SirVer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2018-02-09T17:13:10Z","updated_at":"2018-03-16T17:28:56Z","closed_at":null,"author_association":"NONE","body":"@acmcarther Sorry, this is not really an issue, but I did not know how to reach you otherwise.\r\n\r\nMy company wants to explore rust, but one of our requirements is that we build everything in bazel. We have existing rust code, but had little success building it in bazel, mostly due to the many third_party dependencies that rust requires.\r\n\r\nCan you give me a bit of a status on bazel + rust? What is working? what is not working? who is investing? \r\n\r\nAlso, who is maintaining the https://github.com/bazelbuild/rules_rust repo? It seems pretty dead at this point in time."},"comment":{"url":"https://api.github.com/repos/acmcarther/cargo-raze/issues/comments/373787100","html_url":"https://github.com/acmcarther/cargo-raze/issues/27#issuecomment-373787100","issue_url":"https://api.github.com/repos/acmcarther/cargo-raze/issues/27","id":373787100,"user":{"login":"SirVer","id":140115,"avatar_url":"https://avatars0.githubusercontent.com/u/140115?v=4","gravatar_id":"","url":"https://api.github.com/users/SirVer","html_url":"https://github.com/SirVer","followers_url":"https://api.github.com/users/SirVer/followers","following_url":"https://api.github.com/users/SirVer/following{/other_user}","gists_url":"https://api.github.com/users/SirVer/gists{/gist_id}","starred_url":"https://api.github.com/users/SirVer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirVer/subscriptions","organizations_url":"https://api.github.com/users/SirVer/orgs","repos_url":"https://api.github.com/users/SirVer/repos","events_url":"https://api.github.com/users/SirVer/events{/privacy}","received_events_url":"https://api.github.com/users/SirVer/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T17:28:56Z","updated_at":"2018-03-16T17:28:56Z","author_association":"NONE","body":"@acmcarther Working around with the bazel.rc is working for me for now and is a satisfying hack for the moment.\r\n\r\nI continued with grpc building and got it working. I copied your vendored gprc-io-sys packet, because I got linking errors without it. I did not have time to dig deeper what they actually were.\r\n\r\nNow it works :fireworks: ! The only wart I have is that I have to add\r\n\r\n~~~\r\n rustc_flags = [\r\n      \"-Clink-args=-lstdc++\",\r\n    ],\r\n~~~\r\n\r\nto every rust crate or binary that transitively depends on grpcio, which is not ideal of course. If I leave this out, I get linking errors:\r\n\r\n~~~\r\n  = note: bazel-out/k8-fastbuild/bin/third_party/point_cloud_viewer/point_viewer_grpc/octree_server.deps/libssl.a(d1_both.pic.o):(.data.DW.ref.__gxx_per\r\nsonality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'\r\n          bazel-out/k8-fastbuild/bin/third_party/point_cloud_viewer/point_viewer_grpc/octree_server.deps/libssl.a(ssl_key_share.pic.o):(.data.rel.ro+0x8\r\n0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'\r\n          bazel-out/k8-fastbuild/bin/third_party/point_cloud_viewer/point_viewer_grpc/octree_server.deps/libssl.a(ssl_key_share.pic.o):(.data.rel.ro+0x9\r\n8): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'\r\n          bazel-out/k8-fastbuild/bin/third_party/point_cloud_viewer/point_viewer_grpc/octree_server.deps/libssl.a(ssl_key_share.pic.o):(.data.rel.ro._ZT\r\nIN4bssl11SSLKeyShareE[_ZTIN4bssl11SSLKeyShareE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'\r\n          collect2: error: ld returned 1 exit status\r\n~~~\r\n\r\nFor a c++ lib, I would set `alwayslink = 1` for this. Did you encounter this or do you have a suggestion how to work around it?"}}
{"actor":{"display_login":"SirVer"}}