Why did Islam enjoy much relative freedom during the Hongwu Emperor reign ?
It is known that during the establishment of the Ming Empire, the Hongwu Emperor placed many restrictions on Buddhism and Daoism while supporting and promoting Confucianism. These restrictions were further exemplified by foreign religions such as Christianity, Manicheism, and the White Lotus sect. However, for some reason, Islam, which itself was a foreign religion, was free from these restrictions and the Emperor promoted the building of mosques and also wrote his famous eulogy to the Prophet. So I was wondering what would be the reason for such tolerance to the religion. I read that it was because some of the generals who helped the Hongwu Emperor were Hui, yet the certainty of their ethnicities was not confirmed, let alone if they were practicing Muslims. If I have any misconceptions, I would love to be corrected and gain new insight and nuance on the topic, many thanks!!