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

Update dependencies #58

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Update dependencies #58

merged 1 commit into from
Nov 27, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Nov 25, 2023

No description provided.

let format = tracing_subscriber::fmt::format().without_time().pretty();
let subscriber = tracing_subscriber::fmt()
.with_max_level(Level::TRACE)
.with_writer(MakeJsLogWriter::new())
.with_ansi(false)
.event_format(format)
.finish();
let subscriber = make_tracing_subscriber(None);
Copy link
Member Author

Choose a reason for hiding this comment

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

matrix-org/matrix-rust-sdk#2856 changed the type of JsLoggingSubscriber, and we may as well just use make_tracing_subscriber rather than re-inventing it here.

@@ -13,7 +13,7 @@ where
let constructor_name = Object::get_prototype_of(value).constructor().name();

if constructor_name == classname {
let pointer = Reflect::get(value, &JsValue::from_str("ptr"))
let pointer = Reflect::get(value, &JsValue::from_str("__wbg_ptr"))
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

This seems rather brittle but I guess the wbg dependency is pinned anyways 🥲

Copy link
Member Author

Choose a reason for hiding this comment

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

totally agree.

We need to get rid of this function anyway, per #51

@@ -13,7 +13,7 @@ where
let constructor_name = Object::get_prototype_of(value).constructor().name();

if constructor_name == classname {
let pointer = Reflect::get(value, &JsValue::from_str("ptr"))
let pointer = Reflect::get(value, &JsValue::from_str("__wbg_ptr"))
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems rather brittle but I guess the wbg dependency is pinned anyways 🥲

@richvdh richvdh merged commit aab92b0 into main Nov 27, 2023
3 checks passed
@richvdh richvdh deleted the rav/update_deps branch November 27, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants