{"action":"created","issue":{"url":"https://api.github.com/repos/clinuxrulz/sodium-rust-push-pull/issues/3","repository_url":"https://api.github.com/repos/clinuxrulz/sodium-rust-push-pull","labels_url":"https://api.github.com/repos/clinuxrulz/sodium-rust-push-pull/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/clinuxrulz/sodium-rust-push-pull/issues/3/comments","events_url":"https://api.github.com/repos/clinuxrulz/sodium-rust-push-pull/issues/3/events","html_url":"https://github.com/clinuxrulz/sodium-rust-push-pull/issues/3","id":381992393,"node_id":"MDU6SXNzdWUzODE5OTIzOTM=","number":3,"title":"Can't create streams of f32/f64","user":{"login":"dakom","id":6406986,"node_id":"MDQ6VXNlcjY0MDY5ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/6406986?v=4","gravatar_id":"","url":"https://api.github.com/users/dakom","html_url":"https://github.com/dakom","followers_url":"https://api.github.com/users/dakom/followers","following_url":"https://api.github.com/users/dakom/following{/other_user}","gists_url":"https://api.github.com/users/dakom/gists{/gist_id}","starred_url":"https://api.github.com/users/dakom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dakom/subscriptions","organizations_url":"https://api.github.com/users/dakom/orgs","repos_url":"https://api.github.com/users/dakom/repos","events_url":"https://api.github.com/users/dakom/events{/privacy}","received_events_url":"https://api.github.com/users/dakom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-18T19:37:39Z","updated_at":"2018-11-19T01:54:31Z","closed_at":null,"author_association":"NONE","body":"This works:\r\n\r\n```\r\n#[wasm_bindgen]\r\npub fn create_stream_int32(sodium_ctx: *const SodiumCtx) -> *mut StreamSink<i32> { \r\n\r\n    let sodium_ctx = unsafe { &*sodium_ctx };\r\n\r\n    let stream: StreamSink<i32> = sodium_ctx.new_stream_sink();\r\n    Box::into_raw(Box::new(stream))\r\n}\r\n```\r\n\r\nThese do not:\r\n(error is \"the trait `frp::core::sodium_rust::sodium::gc::Trace` is not implemented for `f32` [E0277]\"\r\n\r\n```\r\n#[wasm_bindgen]\r\npub fn create_stream_float32(sodium_ctx: *const SodiumCtx) -> *mut StreamSink<f32> { \r\n\r\n    let sodium_ctx = unsafe { &*sodium_ctx };\r\n\r\n    let stream: StreamSink<f32> = sodium_ctx.new_stream_sink();\r\n    Box::into_raw(Box::new(stream))\r\n}\r\n\r\n#[wasm_bindgen]\r\npub fn create_stream_float64(sodium_ctx: *const SodiumCtx) -> *mut StreamSink<f64> { \r\n\r\n    let sodium_ctx = unsafe { &*sodium_ctx };\r\n\r\n    let stream: StreamSink<f64> = sodium_ctx.new_stream_sink();\r\n    Box::into_raw(Box::new(stream))\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/clinuxrulz/sodium-rust-push-pull/issues/comments/439748855","html_url":"https://github.com/clinuxrulz/sodium-rust-push-pull/issues/3#issuecomment-439748855","issue_url":"https://api.github.com/repos/clinuxrulz/sodium-rust-push-pull/issues/3","id":439748855,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTc0ODg1NQ==","user":{"login":"clinuxrulz","id":278292,"node_id":"MDQ6VXNlcjI3ODI5Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/278292?v=4","gravatar_id":"","url":"https://api.github.com/users/clinuxrulz","html_url":"https://github.com/clinuxrulz","followers_url":"https://api.github.com/users/clinuxrulz/followers","following_url":"https://api.github.com/users/clinuxrulz/following{/other_user}","gists_url":"https://api.github.com/users/clinuxrulz/gists{/gist_id}","starred_url":"https://api.github.com/users/clinuxrulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinuxrulz/subscriptions","organizations_url":"https://api.github.com/users/clinuxrulz/orgs","repos_url":"https://api.github.com/users/clinuxrulz/repos","events_url":"https://api.github.com/users/clinuxrulz/events{/privacy}","received_events_url":"https://api.github.com/users/clinuxrulz/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T01:54:30Z","updated_at":"2018-11-19T01:54:30Z","author_association":"OWNER","body":"Related: https://stackoverflow.com/questions/24340712/providing-an-implementation-when-both-trait-and-type-are-not-in-this-crate\r\n\r\nIt will have to be done in the library code after all."}}
{"actor":{"display_login":"clinuxrulz"}}