Skip to content

Commit 88b6716

Browse files
authored
pr feedback
1 parent a47cf8a commit 88b6716

File tree

13 files changed

+69
-38
lines changed

13 files changed

+69
-38
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ members = [
1313
"sdk/core/azure_core_test_macros",
1414
"sdk/core/azure_core_opentelemetry",
1515
"sdk/cosmos/azure_data_cosmos",
16+
"sdk/cosmos/azure_data_cosmos_native",
1617
"sdk/identity/azure_identity",
1718
"sdk/eventhubs/azure_messaging_eventhubs",
1819
"sdk/eventhubs/azure_messaging_eventhubs_checkpointstore_blob",
@@ -25,7 +26,6 @@ members = [
2526
"sdk/storage/azure_storage_common",
2627
"sdk/storage/azure_storage_blob",
2728
"sdk/storage/azure_storage_queue",
28-
"sdk/cosmos/cosmosclient",
2929
]
3030
exclude = [
3131
"eng/scripts",
File renamed without changes.
File renamed without changes.

sdk/cosmos/cosmosclient/Cargo.toml renamed to sdk/cosmos/azure_data_cosmos_native/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
2-
name = "cosmosclient"
2+
name = "azure_data_cosmos_native"
33
publish = false
4-
description = "C library wrapping the Azure CosmosDB SDK for Rust"
4+
description = "The Cosmos Native Client is a C library, written in Rust but exporting a C-compatible API, that provides a full SDK for Azure Cosmos DB."
55
version = "0.27.0"
66
authors.workspace = true
77
edition.workspace = true
@@ -10,6 +10,7 @@ repository.workspace = true
1010
rust-version.workspace = true
1111

1212
[lib]
13+
name = "cosmosclient"
1314
crate-type = ["cdylib", "staticlib"]
1415

1516
[dependencies]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
use std::ffi::{c_char, CStr, CString};
4+
use std::ffi::{c_char, CStr};
55

66
#[macro_use]
77
mod macros;
88

9-
#[no_mangle] // Necessary to prevent the compiler from stripping it when optimizing
109
/// cbindgen:ignore
10+
#[no_mangle] // Necessary to prevent the compiler from stripping it when optimizing
1111
pub static BUILD_IDENTIFIER: &CStr = c_str!(env!("BUILD_IDENTIFIER"));
1212

1313
const VERSION: &CStr = c_str!(env!("CARGO_PKG_VERSION"));
1414

15-
#[no_mangle]
1615
/// Returns a constant C string containing the version of the Cosmos Client library.
16+
#[no_mangle]
1717
pub extern "C" fn cosmosclient_version() -> *const c_char {
1818
VERSION.as_ptr()
1919
}

0 commit comments

Comments
 (0)