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. #547

Closed
wants to merge 1 commit into from
Closed

Update dependencies. #547

wants to merge 1 commit into from

Conversation

dvc94ch
Copy link

@dvc94ch dvc94ch commented Jan 8, 2022

No description provided.

Copy link
Collaborator

@MarijnS95 MarijnS95 left a comment

Choose a reason for hiding this comment

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

The ash-window change should be reverted as we need to give that some more time and thought. Then, this only bumps example and generator dependencies which at least have no effect on the released crates.

Comment on lines -18 to +21
raw-window-handle = "0.3"
raw-window-handle = "0.4.2"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
raw-window-metal = "0.1"
raw-window-metal = "0.2.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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


[dev-dependencies]
winit = "0.19.4"
winit = "0.26.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This probably needs additional changes, no?

Copy link
Author

Choose a reason for hiding this comment

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

cargo check --workspace seemed to work

Copy link
Collaborator

Choose a reason for hiding this comment

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

--workspace only checks the crates (binaries, libraries) in the workspace (and it seems to be the default when the root Cargo.toml only defines the workspace but doesn't contain any crate of its own).

You should however also check the examples with --examples, or more generically --all-targets.

winit = "0.25.0"
image = "0.10.4"
winit = "0.26.1"
image = "0.23.14"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need these minimum patch versions? Otherwise just omit them entirely, this is just an example.

itertools = "0.10"
nom = "6.0"
once_cell = "1.7"
once_cell = "1.9.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Again no need for patch versions.

Copy link
Author

Choose a reason for hiding this comment

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

that's a bug in cargo upgrade --skip-compatible

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd do these by hand :)

@@ -1,6 +1,6 @@
#![recursion_limit = "256"]

use heck::{CamelCase, ShoutySnakeCase, SnakeCase};
use heck::{ToLowerCamelCase, ToShoutySnakeCase, ToSnakeCase};
Copy link
Collaborator

@MarijnS95 MarijnS95 Jan 8, 2022

Choose a reason for hiding this comment

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

Can we use the cleaner As* wrappers in formatting places?

EDIT: We can't in the places of format_ident! which calls their own limited IdentFragment trait instead of Display::fmt :(

@@ -1200,7 +1200,7 @@ pub fn generate_extension_commands<'a>(

let ident = format_ident!(
"{}Fn",
extension_name.to_camel_case().strip_prefix("Vk").unwrap()
extension_name.to_lower_camel_case().strip_prefix("Vk").unwrap()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lower... So this won't strip the uppercase Vk prefix if the whole thing is lowered or will it retain characters that were uppercase?

Please run the generator at least once to make sure output doesn't change or remains what we expect.

@dvc94ch
Copy link
Author

dvc94ch commented Jan 8, 2022

Closing in favor of #505, sorry didn't see it sooner.

@dvc94ch dvc94ch closed this Jan 8, 2022
@MarijnS95
Copy link
Collaborator

No need to insta-close, we could use the rest of the upgrades but they need some more thought. Whenever upgrading libraries I always do a quick check in the changelog to see if there's anything useful, new features, or worrying shortcomings that I should keep in mind (which my only show at runtime).

MarijnS95 added a commit that referenced this pull request Jan 10, 2022
Examples-only excerpt of #547, as the generator and ash-window example
changes need more work.  Fixes #550.
Ralith pushed a commit that referenced this pull request Jan 10, 2022
Examples-only excerpt of #547, as the generator and ash-window example
changes need more work.  Fixes #550.
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.

None yet

2 participants