Skip to content

Commit

Permalink
[ISSUE #1207]🔥Rename rocketmq-client crate name to rocketmq-client-ru…
Browse files Browse the repository at this point in the history
…st🐛 (#1208)
  • Loading branch information
mxsm authored Nov 17, 2024
1 parent d9abc84 commit 2b8372e
Show file tree
Hide file tree
Showing 18 changed files with 62 additions and 62 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ rocketmq-remoting = { version = "0.3.0", path = "./rocketmq-remoting" }
rocketmq-cli = { version = "0.3.0", path = "./rocketmq-cli" }
rocketmq-namesrv = { version = "0.3.0", path = "./rocketmq-namesrv" }
rocketmq-broker = { version = "0.3.0", path = "./rocketmq-broker" }
rocketmq-client = { version = "0.3.0", path = "./rocketmq-client" }
rocketmq-client-rust = { version = "0.3.0", path = "./rocketmq-client" }

tokio = { version = "1.41", features = ["full"] }
tokio-util = { version = "0.7.12", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-broker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ rocketmq-store = { workspace = true }
rocketmq-filter = { workspace = true }
rocketmq-macros = { workspace = true }
rocketmq-runtime = { workspace = true }
rocketmq-client = { workspace = true }
rocketmq-client-rust = { workspace = true }

anyhow.workspace = true
env_logger.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-broker/src/transaction/queue/get_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use rocketmq_client::consumer::pull_result::PullResult;
use rocketmq_client_rust::consumer::pull_result::PullResult;
use rocketmq_common::common::message::message_ext::MessageExt;

pub(crate) struct GetResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use std::sync::Arc;

use bytes::Bytes;
use cheetah_string::CheetahString;
use rocketmq_client::consumer::pull_result::PullResult;
use rocketmq_client::consumer::pull_status::PullStatus;
use rocketmq_client_rust::consumer::pull_result::PullResult;
use rocketmq_client_rust::consumer::pull_status::PullStatus;
use rocketmq_common::common::broker::broker_config::BrokerConfig;
use rocketmq_common::common::config::TopicConfig;
use rocketmq_common::common::constant::PermName;
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "rocketmq-client"
name = "rocketmq-client-rust"
version.workspace = true
authors.workspace = true
edition.workspace = true
Expand Down
18 changes: 9 additions & 9 deletions rocketmq-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ First, start the RocketMQ NameServer and Broker services.
### Send a single message

```rust
use rocketmq_client::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client::Result;
use rocketmq_client_rust::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_rust::rocketmq;

Expand Down Expand Up @@ -61,8 +61,8 @@ pub async fn main() -> Result<()> {
### Send batch messages

```rust
use rocketmq_client::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client_rust::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_rust::rocketmq;

Expand All @@ -72,7 +72,7 @@ pub const TOPIC: &str = "TopicTest";
pub const TAG: &str = "TagA";

#[rocketmq::main]
pub async fn main() -> rocketmq_client::Result<()> {
pub async fn main() -> rocketmq_client_rust::Result<()> {
//init logger
rocketmq_common::log::init_logger();

Expand Down Expand Up @@ -113,9 +113,9 @@ pub async fn main() -> rocketmq_client::Result<()> {
### Send RPC messages

```rust
use rocketmq_client::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client::Result;
use rocketmq_client_rust::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_rust::rocketmq;

Expand Down
6 changes: 3 additions & 3 deletions rocketmq-client/examples/batch/callback_batch_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ use std::sync::atomic::AtomicI32;
use std::sync::Arc;
use std::thread::sleep;

use rocketmq_client::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client_rust::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_rust::rocketmq;
use tracing::info;
Expand All @@ -30,7 +30,7 @@ pub const TOPIC: &str = "TopicTest";
pub const TAG: &str = "TagA";

#[rocketmq::main]
pub async fn main() -> rocketmq_client::Result<()> {
pub async fn main() -> rocketmq_client_rust::Result<()> {
//init logger
rocketmq_common::log::init_logger();

Expand Down
6 changes: 3 additions & 3 deletions rocketmq-client/examples/batch/simple_batch_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use rocketmq_client::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client_rust::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_rust::rocketmq;

Expand All @@ -25,7 +25,7 @@ pub const TOPIC: &str = "TopicTest";
pub const TAG: &str = "TagA";

#[rocketmq::main]
pub async fn main() -> rocketmq_client::Result<()> {
pub async fn main() -> rocketmq_client_rust::Result<()> {
//init logger
rocketmq_common::log::init_logger();

Expand Down
12 changes: 6 additions & 6 deletions rocketmq-client/examples/broadcast/push_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use rocketmq_client::consumer::default_mq_push_consumer::DefaultMQPushConsumer;
use rocketmq_client::consumer::listener::consume_concurrently_context::ConsumeConcurrentlyContext;
use rocketmq_client::consumer::listener::consume_concurrently_status::ConsumeConcurrentlyStatus;
use rocketmq_client::consumer::listener::message_listener_concurrently::MessageListenerConcurrently;
use rocketmq_client::consumer::mq_push_consumer::MQPushConsumer;
use rocketmq_client::Result;
use rocketmq_client_rust::consumer::default_mq_push_consumer::DefaultMQPushConsumer;
use rocketmq_client_rust::consumer::listener::consume_concurrently_context::ConsumeConcurrentlyContext;
use rocketmq_client_rust::consumer::listener::consume_concurrently_status::ConsumeConcurrentlyStatus;
use rocketmq_client_rust::consumer::listener::message_listener_concurrently::MessageListenerConcurrently;
use rocketmq_client_rust::consumer::mq_push_consumer::MQPushConsumer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::consumer::consume_from_where::ConsumeFromWhere;
use rocketmq_common::common::message::message_ext::MessageExt;
use rocketmq_remoting::protocol::heartbeat::message_model::MessageModel;
Expand Down
14 changes: 7 additions & 7 deletions rocketmq-client/examples/ordermessage/ordermessage_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
use std::sync::atomic::AtomicI64;
use std::sync::Arc;

use rocketmq_client::consumer::default_mq_push_consumer::DefaultMQPushConsumer;
use rocketmq_client::consumer::listener::consume_concurrently_status::ConsumeConcurrentlyStatus;
use rocketmq_client::consumer::listener::consume_orderly_context::ConsumeOrderlyContext;
use rocketmq_client::consumer::listener::consume_orderly_status::ConsumeOrderlyStatus;
use rocketmq_client::consumer::listener::message_listener_orderly::MessageListenerOrderly;
use rocketmq_client::consumer::mq_push_consumer::MQPushConsumer;
use rocketmq_client::Result;
use rocketmq_client_rust::consumer::default_mq_push_consumer::DefaultMQPushConsumer;
use rocketmq_client_rust::consumer::listener::consume_concurrently_status::ConsumeConcurrentlyStatus;
use rocketmq_client_rust::consumer::listener::consume_orderly_context::ConsumeOrderlyContext;
use rocketmq_client_rust::consumer::listener::consume_orderly_status::ConsumeOrderlyStatus;
use rocketmq_client_rust::consumer::listener::message_listener_orderly::MessageListenerOrderly;
use rocketmq_client_rust::consumer::mq_push_consumer::MQPushConsumer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::consumer::consume_from_where::ConsumeFromWhere;
use rocketmq_common::common::message::message_ext::MessageExt;
use rocketmq_remoting::protocol::heartbeat::message_model::MessageModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use rocketmq_client::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client::Result;
use rocketmq_client_rust::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_rust::rocketmq;

Expand Down
6 changes: 3 additions & 3 deletions rocketmq-client/examples/producer/simple_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* limitations under the License.
*/

use rocketmq_client::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client::Result;
use rocketmq_client_rust::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_rust::rocketmq;

Expand Down
12 changes: 6 additions & 6 deletions rocketmq-client/examples/quickstart/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use rocketmq_client::consumer::default_mq_push_consumer::DefaultMQPushConsumer;
use rocketmq_client::consumer::listener::consume_concurrently_context::ConsumeConcurrentlyContext;
use rocketmq_client::consumer::listener::consume_concurrently_status::ConsumeConcurrentlyStatus;
use rocketmq_client::consumer::listener::message_listener_concurrently::MessageListenerConcurrently;
use rocketmq_client::consumer::mq_push_consumer::MQPushConsumer;
use rocketmq_client::Result;
use rocketmq_client_rust::consumer::default_mq_push_consumer::DefaultMQPushConsumer;
use rocketmq_client_rust::consumer::listener::consume_concurrently_context::ConsumeConcurrentlyContext;
use rocketmq_client_rust::consumer::listener::consume_concurrently_status::ConsumeConcurrentlyStatus;
use rocketmq_client_rust::consumer::listener::message_listener_concurrently::MessageListenerConcurrently;
use rocketmq_client_rust::consumer::mq_push_consumer::MQPushConsumer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::message::message_ext::MessageExt;
use rocketmq_rust::rocketmq;
use tracing::info;
Expand Down
6 changes: 3 additions & 3 deletions rocketmq-client/examples/quickstart/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use rocketmq_client::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client::Result;
use rocketmq_client_rust::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_rust::rocketmq;

Expand Down
6 changes: 3 additions & 3 deletions rocketmq-client/examples/rpc/request_callback_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use rocketmq_client::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client::Result;
use rocketmq_client_rust::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_rust::rocketmq;

Expand Down
6 changes: 3 additions & 3 deletions rocketmq-client/examples/rpc/request_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use rocketmq_client::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client::Result;
use rocketmq_client_rust::producer::default_mq_producer::DefaultMQProducer;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_rust::rocketmq;

Expand Down
10 changes: 5 additions & 5 deletions rocketmq-client/examples/transaction/transaction_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ use std::sync::Arc;

use cheetah_string::CheetahString;
use parking_lot::Mutex;
use rocketmq_client::producer::local_transaction_state::LocalTransactionState;
use rocketmq_client::producer::mq_producer::MQProducer;
use rocketmq_client::producer::transaction_listener::TransactionListener;
use rocketmq_client::producer::transaction_mq_producer::TransactionMQProducer;
use rocketmq_client::Result;
use rocketmq_client_rust::producer::local_transaction_state::LocalTransactionState;
use rocketmq_client_rust::producer::mq_producer::MQProducer;
use rocketmq_client_rust::producer::transaction_listener::TransactionListener;
use rocketmq_client_rust::producer::transaction_mq_producer::TransactionMQProducer;
use rocketmq_client_rust::Result;
use rocketmq_common::common::message::message_ext::MessageExt;
use rocketmq_common::common::message::message_single::Message;
use rocketmq_common::common::message::MessageTrait;
Expand Down

0 comments on commit 2b8372e

Please sign in to comment.