Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
Heath Stewart 0cede91bc7
Deny clippy::large_futures and fix +nightly lint (#1895)
* Deny clippy::large_futures and fix +nightly lint

* Fix test errors

* Add clippy to cspell dictionary
2024-11-05 15:39:31 -08:00
Heath Stewart c454842566
Do not log PII in Debug implementations (#1886)
* Do not log PII in Debug implementations

Related to #1707 but does not resolve it. Still need a solution to redact headers as needed.

* Fix style lint issues1

* Add getters to HttpError with test

* Fix wasm32 lint issue

* Elide sanitized fields of HttpError

Safest bet for now. We can expose more later when we figure out a pluggable solution, or at least a way to make it easy to sanitize headers and potentially even body.

* Fix lint issue

* Ignore .vscode/settings.json in cSpell
2024-11-04 13:48:10 -08:00
Patrick Hallisey fd62ba898d
Add oidc as a word to cspell.json (#1871) 2024-10-24 11:55:56 -07:00
Ronnie Geraghty d60b96c1e4
Track 2 markdown files updates (#1840)
* Updates for main README

* Updating mark down files for launch of the official sdk betas

* fixed formatting issue

* Added basic prerequisites and build instructions.

* Adding file extension to LICENSE file

* Fixing spelling issues and adding words to cspell dictionary

* fixing formatting issues

* Update CONTRIBUTING.md

Co-authored-by: Heath Stewart <heaths@microsoft.com>

* Update CONTRIBUTING.md

Co-authored-by: Heath Stewart <heaths@microsoft.com>

* Update README.md

Co-authored-by: Heath Stewart <heaths@microsoft.com>

* Reverting MIT License text change

* changed text on how to identify generated code

* Don't use root slash in subdirectories

Feels misleading.

---------

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2024-10-14 18:12:09 +00:00
Ashley Stanton-Nurse d97b0d1800
[Cosmos] Add APIs to perform single-partition queries against a container (#1814)
* add container_client and ContainerClient::read

* rudimentary initial query API

* re-do partition keys to hide serde_json

* switch to a `NullValue` marker shared by query and partition key, and update docs

* add tracing_subscriber with env filter to all cosmos examples

* fix doctests

* remove Send bound from WASM

* Add 'Sync' bound to from_response_body, but exclude bounds from wasm32

* copyright headers, copyright headers everywhere

* change Pageable back to an owning type

* pr feedback

* refactor partition_key parameter to partition_key_strategy

* refmt and move helper back to azure_data_cosmos

* fix docs

* remove unnecessary doctest from internal utility

* fix cosmos_query sample

* simplify doctests that don't run using panic!()
2024-09-26 10:43:41 -07:00
Heath Stewart 9d5c324abe
Remove ClientSecretCredential, EnvironmentCredential (#1821)
* Remove ClientSecretCredential, EnvironmentCredential

Also moves SpecificAzureCredential to a sample. Fixes #1812.

* Use DAC constructor instead of factory function

Also fixes a few lints

* Fix doc tests
2024-09-25 16:02:44 -07:00
Ashley Stanton-Nurse b4ecd85e99
Add pre-reqs and tasks for launching a live version of the docs site (#1808)
* Add pre-reqs and tasks for launching a live version of the docs site

* disable spell-check on some files

* Build all features and set 'docsrs' flag to enable docs related features in crates
2024-09-23 09:22:09 -07:00
Ashley Stanton-Nurse 09c749a250
Add codespaces/devcontainer config files (#1800)
* Add devcontainer config files for codespaces and vscode

* add cspell extension to vscode

* pr feedback and exclude oncreate from cspell

* yet more cspell exclusions
2024-09-12 16:37:46 -07:00
Ashley Stanton-Nurse 1fbc5dd9fc
Initial CosmosDB crate (#1773)
* implement initial CosmosClient, DatabaseClient and "read database" API

* updates after rebase

* fix some warnings and test issues

* rename "adhoc" sample to "connect"

* add CODEOWNERS for CosmosDB

* use 'cosmosdb' as example prefix

* fix spacing

* a few more tidy-ups

* switch to a team in the cosmos CODEOWNERS

* clippy and lint fixes

* spelling updates

* auth policy test updates

* doc comment updates

* switch to using Model derive macro

* a couple build fixes

* ok that one was my bad

* fix conditional imports

* omit CODEOWNERS from cspell check

* use direct mentions in CODEOWNERS for now

* pr feedback

* fix derive macro broken during refactoring

* use dictionary file and update Cosmos to "Cosmos DB"
2024-09-12 13:53:57 -07:00
Larry Osterman f54f0534ba
Created cplusplus feature to isolate C++ only elements (#1786)
* Created cplusplus feature to isolate C++ only elements

* cplusplus options

* PR feedback

* Deserializable and errorkind are used for CPP

* EH changes to reflect AMQP changes

* serialization and deserialization are cplusplus features
2024-09-04 14:12:46 -07:00
Heath Stewart 759a012e79
Add copyright headers to all .rs source files (#1788)
* Add copyright headers to all .rs source files

* Add datetime to dictionary
2024-09-03 23:55:38 +00:00
Heath Stewart 2b1c1f113b
Centralize Event Hubs dependencies (#1784)
* Centralize Event Hubs dependencies

Also fixes a few spelling issues while testing.

* Always ignore cspell.json
2024-08-29 15:36:25 -07:00
Patrick Hallisey 4ff0cd28d1
Add ADO pipeline scaffolding (#1762) 2024-08-28 21:58:33 +00:00
Larry Osterman 504d88806c
Added content to the readme for Rust Event Hubs (#1740)
* Added content to the readme for Rust Eventhubs - lost more to come

* Fixed readme.md inclusion

* Added content to the readme for Rust Eventhubs; added documentation for the Consumer module

* Added eventhubs to global cspell

* Cleaned up use of EventHubs service name (it's Event Hubs); moved StartPosition to consumer since it's a consumer construct, not a model construct; Cleaned up doccomments around the tree.
2024-08-06 16:53:49 -07:00
Heath Stewart a523ab295a
Refactor general implementation into TypeSpec crates (#1710)
* Refactor general implementation into TypeSpec crates

This is part of the unbranding work across languages. For now we have decided to brand around the "TypeSpec runtime" as some other Azure SDK languages have considered.

* Fix build

* Resolve CodeStyle check issue

* Export http_response_from_body from azure_core

* Fix lint, docs errors
2024-08-02 00:32:40 +00:00
Heath Stewart 9968664b53
Configure and fix spelling issues (#1730) 2024-08-01 17:11:48 -07:00
Heath Stewart acbe066e10
Return `Response<T>` from client methods (#1688)
* Define `Response<T>`

This doesn't actually work because object-safe traits can't have methods with type parameters, so refactoring is needed.

* Define separate `RawResponse`, `Response<T>`

* Fix code style check

* Fix wasm32-only code
2024-06-26 10:00:37 -07:00
Heath Stewart a80e97473d
Support hierarchical Context (#1684)
* Support hierarchical Context

Conceptually similar to Go, which was also similarly copied for C++. Instead of being hierarchical, however, which introduces complexity into `len`, `is_empty`, etc. - though we might only want those for testing by GA - this uses a `Cow` to copy the `HashMap` only when necessary.

Closes #1655

* Remove `remove`, keep `len` for tests only
2024-06-25 09:37:43 -07:00
Kyle Rader decf450b34
Upgrade AzureauthCliCredential to latest TokenCredential trait and use TokenCache (#1575) 2024-01-16 10:06:53 -05:00
Cameron Taggart d652316beb
update AutoRust errors & consumes content-type from operation (#796) 2022-06-13 11:02:19 -04:00
Ryan Levick 91a8936208
Turn on 'test_e2e' feature for rust-analyzer (#683) 2022-03-11 10:45:00 -08:00
Heath Stewart 1a8a3b90e8
Format on save (#282) 2021-06-04 10:32:57 -07:00
Heath Stewart 94fde5d4ee
Reorganize the repo to better match other SDKs (#209)
Also adds an .editorconfig for some consistent settings.
2021-04-07 11:24:15 +02:00
Cameron Taggart 4e66d2ad02
format with Better TOML (#45) 2020-10-16 15:55:18 +02:00