Cook the rice along with 1/2 tsp salt.
Once done drain the water from the rice and set aside. Let it cool down.
Now add coconut oil in a pan.
Add the mustard seeds and let it splutter.
Once it starts spluttering add jeera, curry leaves, roasted chana dal, broken urad dal, cashews, asafoetida, green chilli, ginger and salt one by one.
Now saute everything on a low flame until golden brown.
Add the grated coconut and saute for between 1-2 minutes and turn off the flame.
Add the cooked rice and mix well.
Now finally add the fried onion and mix thoroughly.
You can add more salt if needed.
And the coconut rice is ready to serve.
This can be served along with chole, chana dal tadka, any pickle or you can have it just like that.