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 links & README.md for services #695

Merged
merged 13 commits into from
Mar 24, 2022
Merged

Conversation

cataggar
Copy link
Member

@cataggar cataggar commented Mar 23, 2022

The primary purpose of the pull request is to add links & README.md for services. Fix #632.

For AutoRust, it also makes a couple of additional changes:

  • switch to Utf8Path & Utf8PathBuf from camino
  • some error cleanup
  • switched some io function to its own module

I'll be making a separate pull request to explain the tags.

@cataggar cataggar requested review from bmc-msft and heaths March 23, 2022 17:14
Copy link
Member

@heaths heaths left a comment

Choose a reason for hiding this comment

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

Nice!

license = "MIT"
description = "generated REST API bindings"
repository = "https://github.com/azure/azure-sdk-for-rust"
homepage = "https://github.com/azure/azure-sdk-for-rust"
documentation = "https://docs.rs/{}"
Copy link
Member

Choose a reason for hiding this comment

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

Since we're using format!() could we switch to named parameters? As more replacements are added it gets more difficult to keep them properly serialized.

Copy link
Member Author

@cataggar cataggar Mar 23, 2022

Choose a reason for hiding this comment

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

I'd like to switch over to a jinja template in a future pull request for this too.

Utf8PathBuf::from_path_buf(c).map_err(Error::FromPathBuf)
}

pub fn join_several<P1: AsRef<Utf8Path>>(a: P1, b: &[Utf8PathBuf]) -> Result<Vec<Utf8PathBuf>> {
Copy link
Member

Choose a reason for hiding this comment

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

Test for this as well?

services/autorust/codegen/templates/readme.md.jinja Outdated Show resolved Hide resolved
cataggar and others added 2 commits March 23, 2022 17:08
@cataggar cataggar merged commit 055d87e into Azure:main Mar 24, 2022
@cataggar cataggar deleted the services_readme branch March 24, 2022 09:11
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.

add links & README.md for services
3 participants